Re: SOAP calls
All the namespace URIs below are incorrect. They must have slashes, not backslash characters. There must be two slashes after the protocol. Example: http://www.w3.org/2001/XMLSchema Jeff Demetris G wrote: Hey all, I captured the SOAP message that a Client Stub generated and which I verified works at the server Axis side, and I tried to pass it to that server through an HTTP Client I wrote. The SOAP message is below and it gives the error at the end. Any ideas what that is ? I saw this in some mailing lists but no explanation. Thanks ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=http:\schemas.xmlsoap.org\soap\envelope\ xmlns:xsd=http:\www.w3.org\2001\XMLSchema xmlns:xsi=http:\www.w3.org\2001\XMLSchema-instancesoapenv:Bodyns1:getBundles soapenv:encodingStyle=http:\schemas.xmlsoap.org\soap\encoding\ xmlns:ns1=http:\soapobject.bundle.knopflerfish.org\\soapenv:Body\soapenv:Envelope (The filename, directory name, or volume label syntax is incorrect) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SOAP calls
All I can suggest is to try running org.apache.axis.utils.tcpmon.java (from the older Axis 1.4) or even SOAPScope to capture not only the SOAP envelope, but also the HTTP headers that it probably expects. -Original Message- From: Demetris G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 12:38 AM To: axis-user@ws.apache.org Subject: SOAP calls Hey all, I captured the SOAP message that a Client Stub generated and which I verified works at the server Axis side, and I tried to pass it to that server through an HTTP Client I wrote. The SOAP message is below and it gives the error at the end. Any ideas what that is ? I saw this in some mailing lists but no explanation. Thanks ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=http:\schemas.xmlsoap.org\soap\envelope\ xmlns:xsd=http:\www.w3.org\2001\XMLSchema xmlns:xsi=http:\www.w3.org\2001\XMLSchema-instancesoapenv:Bodyns1: getBundles soapenv:encodingStyle=http:\schemas.xmlsoap.org\soap\encoding\ xmlns:ns1=http:\soapobject.bundle.knopflerfish.org\\soapenv:Body\s oapenv:Envelope (The filename, directory name, or volume label syntax is incorrect) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP calls
Jeff/Demetris should'nt the URI have a double // and not single / to quote the definition A hierarchical URI is either an absolute URI whose scheme-specific part begins with a slash character, or a relative URI, that is, a URI that does not specify a scheme. Some examples of hierarchical URIs are: http://java.sun.com/j2se/1.3/ change ALL http:/ to http:// and redeploy Keep me apprised.. Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Walker, Jeff [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Wednesday, June 06, 2007 9:19 AM Subject: RE: SOAP calls All I can suggest is to try running org.apache.axis.utils.tcpmon.java (from the older Axis 1.4) or even SOAPScope to capture not only the SOAP envelope, but also the HTTP headers that it probably expects. -Original Message- From: Demetris G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 12:38 AM To: axis-user@ws.apache.org Subject: SOAP calls Hey all, I captured the SOAP message that a Client Stub generated and which I verified works at the server Axis side, and I tried to pass it to that server through an HTTP Client I wrote. The SOAP message is below and it gives the error at the end. Any ideas what that is ? I saw this in some mailing lists but no explanation. Thanks ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=http:\schemas.xmlsoap.org\soap\envelope\ xmlns:xsd=http:\www.w3.org\2001\XMLSchema xmlns:xsi=http:\www.w3.org\2001\XMLSchema-instancesoapenv:Bodyns1: getBundles soapenv:encodingStyle=http:\schemas.xmlsoap.org\soap\encoding\ xmlns:ns1=http:\soapobject.bundle.knopflerfish.org\\soapenv:Body\s oapenv:Envelope (The filename, directory name, or volume label syntax is incorrect) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP calls
Good catch Jeff - No idea how that happened there. Let me try it again. And thanks also to Jeff Walker for his suggestion - instead of using the tcpmon I read the message myself through a tcp socket so essentially I am doing the same thing. I separate the HTTP headers from the SOAP msg (using the Content-Length + a blank line). Thanks again I will let you know how it goes. Jeff Greif wrote: All the namespace URIs below are incorrect. They must have slashes, not backslash characters. There must be two slashes after the protocol. Example: http://www.w3.org/2001/XMLSchema Jeff Demetris G wrote: Hey all, I captured the SOAP message that a Client Stub generated and which I verified works at the server Axis side, and I tried to pass it to that server through an HTTP Client I wrote. The SOAP message is below and it gives the error at the end. Any ideas what that is ? I saw this in some mailing lists but no explanation. Thanks ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=http:\schemas.xmlsoap.org\soap\envelope\ xmlns:xsd=http:\www.w3.org\2001\XMLSchema xmlns:xsi=http:\www.w3.org\2001\XMLSchema-instancesoapenv:Bodyns1:getBundles soapenv:encodingStyle=http:\schemas.xmlsoap.org\soap\encoding\ xmlns:ns1=http:\soapobject.bundle.knopflerfish.org\\soapenv:Body\soapenv:Envelope (The filename, directory name, or volume label syntax is incorrect) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP calls
Hey guys, I doubled checked the SOAP message I am sending to the Axis Server Engine and here it is: ?xml version=\1.0\ encoding=\UTF-8\?+ soapenv:Envelope xmlns:soapenv=\http://schemas.xmlsoap.org/soap/envelope/\; + xmlns:xsd=\http://www.w3.org/2001/XMLSchema\; + xmlns:xsi=\http://www.w3.org/2001/XMLSchema-instance\;+ soapenv:Bodyns1:getBundles soapenv:encodingStyle=\http://schemas.xmlsoap.org/soap/encoding/\; + xmlns:ns1=\http://soapobject.bundle.knopflerfish.org\//soapenv:Body/soapenv:Envelope; and the response is as you saw before: - I/O exception (java.io.FileNotFoundException) caught when processing request: ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=http:\schemas.xmlsoap.org\soap\envelope\ xmlns:xsd=http:\www.w3.org\2001\XMLSchema xmlns:xsi=http:\www.w3.org\2001\XMLSchema-instancesoapenv:Bodyns1:getBundles soapenv:encodingStyle=http:\schemas.xmlsoap.org\soap\encoding\ xmlns:ns1=http:\soapobject.bundle.knopflerfish.org\\soapenv:Body\soapenv:Envelope (The filename, directory name, or volume label syntax is incorrect) - Retrying request Who is stripping the two '//' and replacing it with '\' ?? Is the fact that I am sending this over as a String causing the issue or am I missing something more ? I remember a while back reading something about a bug that causes Axis 1.4 to replace forward slashes with backslashes in Axis 1.4 - unless that was completely irrelevant and I am doing something nutty here. Thanks very much again Martin Gainty wrote: Jeff/Demetris should'nt the URI have a double // and not single / to quote the definition A hierarchical URI is either an absolute URI whose scheme-specific part begins with a slash character, or a relative URI, that is, a URI that does not specify a scheme. Some examples of hierarchical URIs are: http://java.sun.com/j2se/1.3/ change ALL http:/ to http:// and redeploy Keep me apprised.. Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Walker, Jeff [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Wednesday, June 06, 2007 9:19 AM Subject: RE: SOAP calls All I can suggest is to try running org.apache.axis.utils.tcpmon.java (from the older Axis 1.4) or even SOAPScope to capture not only the SOAP envelope, but also the HTTP headers that it probably expects. -Original Message- From: Demetris G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 12:38 AM To: axis-user@ws.apache.org Subject: SOAP calls Hey all, I captured the SOAP message that a Client Stub generated and which I verified works at the server Axis side, and I tried to pass it to that server through an HTTP Client I wrote. The SOAP message is below and it gives the error at the end. Any ideas what that is ? I saw this in some mailing lists but no explanation. Thanks ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=http:\schemas.xmlsoap.org\soap\envelope\ xmlns:xsd=http:\www.w3.org\2001\XMLSchema xmlns:xsi=http:\www.w3.org\2001\XMLSchema-instancesoapenv:Bodyns1: getBundles soapenv:encodingStyle=http:\schemas.xmlsoap.org\soap\encoding\ xmlns:ns1=http:\soapobject.bundle.knopflerfish.org\\soapenv:Body\s oapenv:Envelope (The filename, directory name, or volume label syntax is incorrect) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP calls
And this is how I am sending the SOAP message over: String strURL = http://localhost:8080/axis/services;; File input = new File(SOAPMessage); PostMethod post = new PostMethod(strURL); RequestEntity entity = new FileRequestEntity(input, text/xml; charset=ISO-8859-1); post.setRequestEntity(entity); int result = httpclient.executeMethod(post); Any ideas would be greatly appeciated - is the charset an issue ? Thanks much - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP calls
Hi all, I modified the RequestEntity from File to StringRequestEntity and I inserted the SOAP content in it and it seems to be calling the engine now - I am getting the following fault back but at least I know it works - so the FileRequestEntity was reversing the slashes: === POST response status code: 500 === POST response body: - Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended. ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body soapenv:Fault faultcode xmlns:ns1=http://xml.apache.org/axis/;ns1:Client.NoSOAPAction/faultcode faultstringno SOAPAction header!/faultstring detail ns2:hostname xmlns:ns2=http://xml.apache.org/axis/;demetris-note/ns2:hostname /detail /soapenv:Fault /soapenv:Body It seems to be complainig about not having a SOAPAction header - but the original Axis SOAP message did not have an action header anyway. Any ideas why it is requesting now? Thanks again Martin Gainty wrote: Jeff/Demetris should'nt the URI have a double // and not single / to quote the definition A hierarchical URI is either an absolute URI whose scheme-specific part begins with a slash character, or a relative URI, that is, a URI that does not specify a scheme. Some examples of hierarchical URIs are: http://java.sun.com/j2se/1.3/ change ALL http:/ to http:// and redeploy Keep me apprised.. Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Walker, Jeff [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Wednesday, June 06, 2007 9:19 AM Subject: RE: SOAP calls All I can suggest is to try running org.apache.axis.utils.tcpmon.java (from the older Axis 1.4) or even SOAPScope to capture not only the SOAP envelope, but also the HTTP headers that it probably expects. -Original Message- From: Demetris G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 12:38 AM To: axis-user@ws.apache.org Subject: SOAP calls Hey all, I captured the SOAP message that a Client Stub generated and which I verified works at the server Axis side, and I tried to pass it to that server through an HTTP Client I wrote. The SOAP message is below and it gives the error at the end. Any ideas what that is ? I saw this in some mailing lists but no explanation. Thanks ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=http:\schemas.xmlsoap.org\soap\envelope\ xmlns:xsd=http:\www.w3.org\2001\XMLSchema xmlns:xsi=http:\www.w3.org\2001\XMLSchema-instancesoapenv:Bodyns1: getBundles soapenv:encodingStyle=http:\schemas.xmlsoap.org\soap\encoding\ xmlns:ns1=http:\soapobject.bundle.knopflerfish.org\\soapenv:Body\s oapenv:Envelope (The filename, directory name, or volume label syntax is incorrect) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP calls
Ok one last one to put closure to this and inform the list - I can easily use the addParameter of the HttpClient class to SOAPAction= and that solved the problem. Now I am getting the correct SOAP response to my requests. In other words, if you are to build an http client to pass SOAP messages to an Axis engine don't forget to add necessary http header information into the POST ;) Thanks to all for the responses and help. Demetris G wrote: Hi all, I modified the RequestEntity from File to StringRequestEntity and I inserted the SOAP content in it and it seems to be calling the engine now - I am getting the following fault back but at least I know it works - so the FileRequestEntity was reversing the slashes: === POST response status code: 500 === POST response body: - Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended. ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body soapenv:Fault faultcode xmlns:ns1=http://xml.apache.org/axis/;ns1:Client.NoSOAPAction/faultcode faultstringno SOAPAction header!/faultstring detail ns2:hostname xmlns:ns2=http://xml.apache.org/axis/;demetris-note/ns2:hostname /detail /soapenv:Fault /soapenv:Body It seems to be complainig about not having a SOAPAction header - but the original Axis SOAP message did not have an action header anyway. Any ideas why it is requesting now? Thanks again Martin Gainty wrote: Jeff/Demetris should'nt the URI have a double // and not single / to quote the definition A hierarchical URI is either an absolute URI whose scheme-specific part begins with a slash character, or a relative URI, that is, a URI that does not specify a scheme. Some examples of hierarchical URIs are: http://java.sun.com/j2se/1.3/ change ALL http:/ to http:// and redeploy Keep me apprised.. Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Walker, Jeff [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Wednesday, June 06, 2007 9:19 AM Subject: RE: SOAP calls All I can suggest is to try running org.apache.axis.utils.tcpmon.java (from the older Axis 1.4) or even SOAPScope to capture not only the SOAP envelope, but also the HTTP headers that it probably expects. -Original Message- From: Demetris G [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 12:38 AM To: axis-user@ws.apache.org Subject: SOAP calls Hey all, I captured the SOAP message that a Client Stub generated and which I verified works at the server Axis side, and I tried to pass it to that server through an HTTP Client I wrote. The SOAP message is below and it gives the error at the end. Any ideas what that is ? I saw this in some mailing lists but no explanation. Thanks ?xml version=1.0 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=http:\schemas.xmlsoap.org\soap\envelope\ xmlns:xsd=http:\www.w3.org\2001\XMLSchema xmlns:xsi=http:\www.w3.org\2001\XMLSchema-instancesoapenv:Bodyns1: getBundles soapenv:encodingStyle=http:\schemas.xmlsoap.org\soap\encoding\ xmlns:ns1=http:\soapobject.bundle.knopflerfish.org\\soapenv:Body\s oapenv:Envelope (The filename, directory name, or volume label syntax is incorrect) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]