axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Klindworth (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-2554) Problems deserializing io parameter from response data
Date Mon, 28 Aug 2006 14:37:55 GMT
Problems deserializing io parameter from response data
------------------------------------------------------

                 Key: AXIS-2554
                 URL: http://issues.apache.org/jira/browse/AXIS-2554
             Project: Apache Axis
          Issue Type: Bug
          Components: Serialization/Deserialization
    Affects Versions: 1.4
            Reporter: Lars Klindworth


when i use the generated java code for a client of my soap server i will get the following
error message:

org.xml.sax.SAXException: Invalid element in com.xxx.www.soap.schemas.requests.v110.stateless.XVAS.CreateVASCodeVersionReturn
- target

The generated BindingStub looks like this:
        oper = new org.apache.axis.description.OperationDesc();
        oper.setName("CreateVASCodeVersion");
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"eiMessageContext"), org.apache.axis.description.ParameterDesc.INOUT, new javax.xml.namespace.QName("http://messaging.ei.xxx.net/datatypes",
"EIMessageContext"), net.xxx.ei.messaging.datatypes.EIMessageContext.class, false, false);
        oper.addParameter(param);
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"RequestContext"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"RequestContext"), com.xxx.www.soap.schemas.requests.v110.stateless.XVAS.RequestContext.class,
false, false);
        oper.addParameter(param);
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"Partner"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"Partner"), com.xxx.www.soap.schemas.requests.v110.stateless.XVAS.Partner.class, false, false);
        oper.addParameter(param);
        param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"NewVASCodeVersion"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"NewVASCodeVersion"), com.xxx.www.soap.schemas.requests.v110.stateless.XVAS.NewVASCodeVersion.class,
false, false);
        oper.addParameter(param);
        oper.setReturnType(new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"CreateVASCodeVersionReturn"));
        oper.setReturnClass(com.xxx.www.soap.schemas.requests.v110.stateless.XVAS.CreateVASCodeVersionReturn.class);
        oper.setReturnQName(new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"data"));
        oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
        oper.setUse(org.apache.axis.constants.Use.LITERAL);
        oper.addFault(new org.apache.axis.description.FaultDesc(
                      new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"XTCExceptionElement"),
                      "com.xxx.www.soap.schemas.requests.v110.stateless.XVAS.XTCExceptionElementType",
                      new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"XTCExceptionElementType"), 
                      true
                     ));
        oper.addFault(new org.apache.axis.description.FaultDesc(
                      new javax.xml.namespace.QName("http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS",
"TechnicalExceptionElement"),
                      "net.xxx.ei.messaging.datatypes.SOABPException",
                      new javax.xml.namespace.QName("http://messaging.ei.xxx.net/datatypes",
"SOABPException"), 
                      true
                     ));
        _operations[0] = oper;


Testrequest from generated code:
<?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><CreateVASCodeVersion xmlns="http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS">
<eiMessageContext>
 <ns1:target xmlns:ns1="http://messaging.ei.xxx.net/datatypes">target</ns1:target>
 <ns2:replyTo  mlns:ns2="http://messaging.ei.xxx.net/datatypes">replyto</ns2:replyTo>
 <ns3:requestId xmlns:ns3="http://messaging.ei.xxx.net/datatypes">reqid</ns3:requestId>
 <ns4:timeLeft xmlns:ns4="http://messaging.ei.xxx.net/datatypes">100</ns4:timeLeft>
 <ns5:priority xmlns:ns5="http://messaging.ei.xxx.net/datatypes">1</ns5:priority>
 <ns6:redelivered xmlns:ns6="http://messaging.ei.xxx.net/datatypes">CLIENT</ns6:redelivered>
 <ns7:revision xmlns:ns7="http://messaging.ei.xxx.net/datatypes">rev</ns7:revision>
 <ns8:sender xmlns:ns8="http://messaging.ei.xxx.net/datatypes">sender</ns8:sender>
 <ns9:correlationId xmlns:ns9="http://messaging.ei.xxx.net/datatypes">corrId</ns9:correlationId>
</eiMessageContext>
<RequestContext>
 <Authorisation xmlns="">
  <User>contractadmin</User>
  <Password>contractadmin1</Password>
 </Authorisation>
</RequestContext>
<Partner>
 <ContractId xmlns="">VASTEST</ContractId>
</Partner>
<NewVASCodeVersion>
 <ServiceId>New1</ServiceId>
 <VasDescription>SoundLogo</VasDescription>
 <ValidFrom>2006-08-29T12:39:55.186Z</ValidFrom>
 <GroupCode>VASGroup</GroupCode>
 <ContentCategory>ADULT</ContentCategory>
 <ContentTypeCode>Softgame1</ContentTypeCode>
 <SubscriberAccess>
  <GeneralAccess xmlns="">
   <PrepaidAllowed>false</PrepaidAllowed>
   <PostpaidAllowed>true</PostpaidAllowed>
  </GeneralAccess>
 </SubscriberAccess>
</NewVASCodeVersion>
</CreateVASCodeVersion>
</soapenv:Body>
</soapenv:Envelope>


The response from my SOAP-Server:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<res:CreateVASCodeVersionResponse xmlns:res="http://www.xxx.com/soap/schemas/requests/v110/stateless/XVAS">
	<eiMessageContext>
		<ns1:target xmlns:ns1="http://messaging.ei.xxx.net/datatypes">target</ns1:target>
		<ns2:replyTo xmlns:ns2="http://messaging.ei.xxx.net/datatypes">replyto</ns2:replyTo>
		<ns3:requestId xmlns:ns3="http://messaging.ei.xxx.net/datatypes">reqid</ns3:requestId>
		<ns4:timeLeft xmlns:ns4="http://messaging.ei.xxx.net/datatypes">100</ns4:timeLeft>
		<ns5:priority xmlns:ns5="http://messaging.ei.xxx.net/datatypes">1</ns5:priority>
		<ns6:redelivered xmlns:ns6="http://messaging.ei.xxx.net/datatypes">CLIENT</ns6:redelivered>
		<ns7:revision xmlns:ns7="http://messaging.ei.xxx.net/datatypes">rev</ns7:revision>
		<ns8:sender xmlns:ns8="http://messaging.ei.xxx.net/datatypes">sender</ns8:sender>
		<ns9:correlationId xmlns:ns9="http://messaging.ei.xxx.net/datatypes">corrId</ns9:correlationId>
	</eiMessageContext>
	<CreateVASCodeVersionReturn/>
</res:CreateVASCodeVersionResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


What went wrong?




-- 
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message