[ http://issues.apache.org/jira/browse/AXIS2-112?page=all ]
Chathura Herath reopened AXIS2-112:
-----------------------------------
I get a NULL poiner exception with multipart wsdl(RPC literal) with multipart
messages. I am quite sure i fixed this multipart issue sometime back but some
change has broken the flow. I had included a testcase for this in
org.apache.wsdl.MessageReuseTest testMultipartmessageReuse() and the test code
is commented. I am reopening the issue. Ajith if i am missing something pls do
comment and i will do the JIRA cleaning :-)
Exception in thread "main" java.lang.NullPointerException
at
org.apache.axis2.wsdl.builder.wsdl4j.WSDLPump.generateWrapperSchema(WSDLPump.java:633)
at
org.apache.axis2.wsdl.builder.wsdl4j.WSDLPump.populateDefinition(WSDLPump.java:153)
at org.apache.axis2.wsdl.builder.wsdl4j.WSDLPump.pump(WSDLPump.java:100)
at
org.apache.axis2.wsdl.builder.wsdl4j.WSDL1ToWOMBuilder.build(WSDL1ToWOMBuilder.java:126)
at
org.apache.axis2.wsdl.builder.wsdl4j.WSDL1ToWOMBuilder.build(WSDL1ToWOMBuilder.java:95)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.getWOM(CodeGenerationEngine.java:116)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:46)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="LoginService" targetNamespace="http://login"
xmlns:tns="http://login" xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:ns2="http://login/types">
<types>
<schema targetNamespace="http://login/types"
xmlns:tns="http://login/types"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema">
<import
namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<element name="returnWebLoginElement">
<complexType>
<sequence>
<element
ref="tns:soap_session_idElement" />
<element
ref="tns:web_user_nameElement" />
</sequence>
</complexType>
</element>
<element name="webLoginElement">
<complexType>
<sequence>
<element
ref="tns:user_nameElement" />
<element
ref="tns:user_passwordElement" />
</sequence>
</complexType>
</element>
<element name="webLoginElement2">
<complexType>
<sequence>
<element
ref="tns:user_nameElement" />
<element
ref="tns:user_passwordElement" />
</sequence>
</complexType>
</element>
<element name="user_nameElement" type="xsd:string" />
<element name="user_passwordElement" type="xsd:string"
/>
<element name="soap_session_idElement"
type="xsd:string" />
<element name="web_user_nameElement" type="xsd:string"
/>
</schema>
</types>
<message name="LoginEndpoint_webLogin">
<part name="parameter1" element="ns2:webLoginElement" />
<part name="parameter2" element="ns2:webLoginElement2" />
</message>
<message name="LoginEndpoint_webLoginResponse">
<part name="result" element="ns2:returnWebLoginElement" />
</message>
<portType name="LoginEndpoint">
<operation name="webLogin">
<input message="tns:LoginEndpoint_webLogin"
name="LoginEndpoint_webLogin" />
<output message="tns:LoginEndpoint_webLoginResponse"
name="LoginEndpoint_webLoginResponse" />
</operation>
</portType>
<binding name="LoginEndpointBinding" type="tns:LoginEndpoint">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="rpc" />
<operation name="webLogin">
<soap:operation soapAction="webLogin" />
<input name="LoginEndpoint_webLogin">
<soap:body parts="parameter1 parameter1"
use="literal" />
</input>
<output name="LoginEndpoint_webLoginResponse">
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="LoginService">
<port name="LoginEndpointPort"
binding="tns:LoginEndpointBinding">
<soap:address
location="http://localhost:8080/axis2/services/LoginEndpoint" />
</port>
</service>
</definitions>
> Doclitparams Interoperability Test failed
> -----------------------------------------
>
> Key: AXIS2-112
> URL: http://issues.apache.org/jira/browse/AXIS2-112
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Versions: 0.9
> Environment: Windows XP
> j2sdk1.4.2_01
> Reporter: Nadana Gunaratna
> Priority: Minor
>
> Service Info:
> WSDL Location:http://soapinterop.java.sun.com/round3/groupd/doclitparams?WSDL
> Service Location:
> http://soapinterop.java.sun.com:80/round3/groupd/doclitparams
> For more Information:
> http://soapinterop.java.sun.com
> The Request SOAP was produced using the generated stubs (using WSDL2Java). A
> SOAP fault was received as the response.
> Request SOAP Message as displayed in theTCP monitor:
> POST /round3/groupd/doclitparams HTTP/1.1
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related, text/*
> Host: soapinterop.java.sun.com
> Cache-Control: no-cache
> Pragma: no-cache
> Content-Length: 236
> SOAPAction: "http://soapinterop.org/"
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Header></soapenv:Header>
> <soapenv:Body>
> <echoString xmlns="http://soapinterop.org/xsd">
> <param0>hi</param0>
> </echoString>
> </soapenv:Body></soapenv:Envelope>
> Response SOAP Message:
> HTTP/1.1 500 Internal Server Error
> SOAPAction: ""
> Content-Type: text/xml; charset="utf-8"
> Transfer-Encoding: chunked
> Date: Sat, 30 Jul 2005 04:41:46 GMT
> Server: Apache Coyote/1.0
>
> 21e
> <?xml version="1.0" encoding="UTF-8"?>
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns0="http://soapinterop.org/xsd">
> <env:Body>
> <env:Fault>
> <faultcode>env:Client</faultcode>
> <faultstring>caught exception while handling request: unexpected
> element name: expected=param0,
> actual={http://soapinterop.org/xsd}param0</faultstring>
> </env:Fault>
> </env:Body>
> </env:Envelope>
> 0
>
> Then the SOAP message was modified as follows, i.e. the first child of the
> body was pre-fixed with the local name of the namespace, and resent from the
> TCP Monitor, Request SOAP Message accepted as correct and received Response
> as follows.
> Request SOAP Message:
> POST /round3/groupd/doclitparams HTTP/1.1
> Content-Type: text/xml; charset=utf-8
> Accept: application/soap+xml, application/dime, multipart/related, text/*
> Host: soapinterop.java.sun.com
> Cache-Control: no-cache
> Pragma: no-cache
> Content-Length: 590
> SOAPAction: "http://soapinterop.org/"
> <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"
> xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns0="http://soapinterop.org/xsd">
> <soapenv:Header></soapenv:Header>
> <soapenv:Body>
> <x:echoString xmlns:x="http://soapinterop.org/xsd">
>
> <param0>hi</param0>
> </x:echoString>
> </soapenv:Body></soapenv:Envelope>
>
> Response SOAP Message:
> HTTP/1.1 200 OK
> SOAPAction: ""
> Content-Type: text/xml; charset="utf-8"
> Transfer-Encoding: chunked
> Date: Sat, 30 Jul 2005 06:29:45 GMT
> Server: Apache Coyote/1.0
>
> 193
> <?xml version="1.0" encoding="UTF-8"?>
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns0="http://soapinterop.org/xsd">
> <env:Body>
> <ns0:echoStringResponse>
> <return>hi</return>
> </ns0:echoStringResponse>
> </env:Body>
> </env:Envelope>
> 0
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira