axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lahiru Sandakith" <sandak...@gmail.com>
Subject Re: org.apache.axis2.AxisFault: input stream for an incoming message is null
Date Thu, 16 Aug 2007 03:41:53 GMT
Hi Tushar,

Seems the same issue plus discussed is going on,
http://www.nabble.com/Consuming-.NET-exposed-web-service-by-an-Axis2-ADB-Client-gives-Error-400-:-Bad-Request-t4269311.html
If you could have a look,
Thanks
Lahiru

On 8/15/07, Tushar Kolwalkar <Tushar.Kolwalkar@landgate.wa.gov.au> wrote:
>
>  Hello,
>
>
>
> We have a Web Service deployed on a GSOAP server. I have used Axis2 code
> generator plugin for Eclipse to generate the client stubs. The Web Service
> predominantly deals with returning images. This is an MTOM Web Service. All
> the operations that return image work fine. There is only one operation (
> getHighestVersionNumber()) which does not return image; it returns a
> version number of the image for a given image ID. The return type of this
> operation is int. When I invoke this operation, I get a strange error.
> Interestingly if I invoke this operation using SOAP UI, we get back the
> expected results without any problems. Please note I am making a synchronous
> request. The exception message is as follows:
>
>
>
> Caused by: org.apache.axis2.AxisFault: The input stream for an incoming
> message is null.
>
>       at org.apache.axis2.transport.TransportUtils.createSOAPMessage(*
> TransportUtils.java:61*)
>
>       at org.apache.axis2.description.OutInAxisOperationClient.send(*
> OutInAxisOperation.java:356*)
>
>       at org.apache.axis2.description.OutInAxisOperationClient.execute(*
> OutInAxisOperation.java:294*)
>
>       at au.com.global360.Get_imageStub.getHighestVersionNumber(*
> Get_imageStub.java:405*)
>
>
>
> The HTTP Response header is as follows:
>
>
>
> 15:43:36 DEBUG header -- << "HTTP/1.1 202 ACCEPTED[\r][\n]"
>
> 15:43:36 DEBUG header -- << "Server: gSOAP/2.7[\r][\n]"
>
> 15:43:36 DEBUG header -- << "Content-Type: application/soap+xml;
> charset=utf-8[\r][\n]"
>
> 15:43:36 DEBUG header -- << "Transfer-Encoding: chunked[\r][\n]"
>
> 15:43:36 DEBUG header -- << "Connection: keep-alive[\r][\n]"
>
> 15:43:37 DEBUG header -- >> "POST / HTTP/1.1[\r][\n]"
>
> 15:43:37 DEBUG header -- >> "Content-Type: application/soap+xml;
> charset=UTF-8; action="urn:getImageAsTiff"[\r][\n]"
>
> 15:43:37 DEBUG header -- >> "User-Agent: Axis2[\r][\n]"
>
> 15:43:37 DEBUG header -- >> "Transfer-Encoding: chunked[\r][\n]"
>
> 15:43:37 DEBUG header -- >> "[\r][\n]"
>
> 15:43:37 DEBUG content -- >> "117[\r][\n]"
>
>
>
> The response header for all other operations that work fine comes as "HTTP/1.1
> 200 OK" but for getHighestVersionNumber(), it is "HTTP/1.1 202 ACCEPTED".
> Interestingly the response header for this call using SOAP UI is again
> "HTTP/1.1 200 OK", so there is something wrong the way the Axis generated
> client stub makes the SOAP request.
>
>
>
> Please see the WSDL copied below for your reference. Any help on this
> problem is much appreciated.
>
>
>
> WSDL:
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <definitions xmlns:tns="urn:global360.com.au/store" xmlns:SOAP-ENV="
> http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="
> http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
> http://www.w3.org/2001/XMLSchema" xmlns:xop="
> http://www.w3.org/2004/08/xop/include" xmlns:mimexml="
> http://www.w3.org/2004/11/mimexml" xmlns:gi="urn:global360.com.au/store"
> xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:MIME="
> http://schemas.xmlsoap.org/wsdl/mime/" xmlns:WSDL="
> http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"
> name="get_image" targetNamespace="urn:global360.com.au/store">
>
>       <WSDL:types>
>
>             <schema targetNamespace="urn:global360.com.au/store"
> xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="
> http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
> http://www.w3.org/2001/XMLSchema" xmlns:xop="
> http://www.w3.org/2004/08/xop/include" xmlns:mimexml="
> http://www.w3.org/2004/06/mimexml" xmlns:gi="urn:global360.com.au/store"
> xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"
> attributeFormDefault="unqualified">
>
>                   <simpleType name="ResultCode">
>
>                         <restriction base="xsd:string">
>
>                               <enumeration value="RESULT-OK"/>
>
>                               <enumeration value="DOCUMENT-ID-UNKNOWN"/>
>
>                               <enumeration value=
> "VERSION-INVALID-FOR-DOCUMENT-ID"/>
>
>                               <enumeration value="RESULT-LAST"/>
>
>                         </restriction>
>
>                   </simpleType>
>
>                   <!-- operation request element -->
>
>                   <element name="getHighestVersionNumber">
>
>                         <complexType>
>
>                               <sequence>
>
>                                     <element name="documentId" type="xsd:string"
> minOccurs="0" maxOccurs="1" nillable="true"/>
>
>                               </sequence>
>
>                         </complexType>
>
>                   </element>
>
>                   <!-- operation response element -->
>
>                   <element name="getHighestVersionNumberResponse">
>
>                         <complexType>
>
>                               <sequence>
>
>                                     <element name="version" type="xsd:int"
> minOccurs="0" maxOccurs="1" nillable="true"/>
>
>                               </sequence>
>
>                         </complexType>
>
>                   </element>
>
>                   <!-- operation request element -->
>
>                   <element name="getImageAsTiffByVersion">
>
>                         <complexType>
>
>                               <sequence>
>
>                                     <element name="documentId" type="xsd:string"
> minOccurs="0" maxOccurs="1" nillable="true"/>
>
>                                     <element name="version" type="xsd:int"
> minOccurs="1" maxOccurs="1"/>
>
>                               </sequence>
>
>                         </complexType>
>
>                   </element>
>
>                   <!-- operation response element -->
>
>                   <element name="getImageReturn">
>
>                         <complexType>
>
>                               <sequence>
>
>                                     <element name="version" type="xsd:int"
> minOccurs="1" maxOccurs="1"/>
>
>                                     <element name="file" nillable="true"
> type="base64Binary"/>
>
>                                     <!-- <element name="file"
> type="gi:File" minOccurs="1" maxOccurs="1"/> -->
>
>                               </sequence>
>
>                         </complexType>
>
>                   </element>
>
>                   <!-- operation request element -->
>
>                   <element name="getImageAsPDFByVersion">
>
>                         <complexType>
>
>                               <sequence>
>
>                                     <element name="documentId" type="xsd:string"
> minOccurs="0" maxOccurs="1" nillable="true"/>
>
>                                     <element name="version" type="xsd:int"
> minOccurs="1" maxOccurs="1"/>
>
>                               </sequence>
>
>                         </complexType>
>
>                   </element>
>
>                   <!-- operation request element -->
>
>                   <element name="getImageAsTiff">
>
>                         <complexType>
>
>                               <sequence>
>
>                                     <element name="documentId" type="xsd:string"
> minOccurs="0" maxOccurs="1" nillable="true"/>
>
>                               </sequence>
>
>                         </complexType>
>
>                   </element>
>
>                   <!-- operation request element -->
>
>                   <element name="getImageAsPDF">
>
>                         <complexType>
>
>                               <sequence>
>
>                                     <element name="documentId" type="xsd:string"
> minOccurs="0" maxOccurs="1" nillable="true"/>
>
>                               </sequence>
>
>                         </complexType>
>
>                   </element>
>
>                   <!-- operation request element -->
>
>                   <element name="checkApiVersion">
>
>                         <complexType>
>
>                               <sequence>
>
>                                     <element name="apiVersionRequired"
> type="xsd:string" minOccurs="0" maxOccurs="1" nillable=
> ...
>
> [Message clipped]




-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F

Mime
View raw message