<div>Hello,</div>
<div> </div>
<div>I'm facing the same problem. I modified the Nusoap and it's possible to create soap messages desired by JBoss for some of the functions, but when I'm using the same way to call other functions, the error as Douglas reported returned. </div>
<div> </div>
<div>From the debug info, i can see the error string is: org.jboss.ws.binding.BindingException: org.jboss.ws.jbossxb.UnmarshalException: Failed to parse source: Requested element {<a href="http://messages..../ws">http://messages..../ws</a>}ChargedUserRequest_1 is not allowed in this position in the sequence. The next element should be ChargedUserRequest_1</div>
<div> </div>
<div>I think this error is also caused by the problem of namespace. So I tried to add / removed all namespaces of each operation and parameter, but it doesn't work too. I don't know what should be the xml like.</div>
<div> </div>
<div>The way works fine on another function, the difference between those 2 function is, another function doesn't set its own parameter, but only extends the Request. So I don't have any ideas about whether there is any relations.</div>
<div> </div>
<div>The issue soap message as below.</div>
<div> </div>
<div><span class="comment"><?xml version="1.0" encoding="UTF-8"?><br><SOAP-ENV:Envelope xmlns:SOAP-ENV="<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>" xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns:SOAP-ENC="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>" xmlns:ns2410="<a href="http://tempuri.org/">http://tempuri.org</a>"><br>
<SOAP-ENV:Body><br><chargeUser xmlns="urn:charge....types"><br><ns:ChargeUserRequest_1 xmlns:ns="<a href="http://messages..../ws">http://messages..../ws</a>"><br><amount>5</amount><br>
<reasonCode>456</reasonCode><br><taxable>true</taxable><br><appID>WEBSERVICE</appID><br><token>GW2K4PYMUkFmrjtKWisLZqFYx</token><br><account>123456</account><br>
<transactionID>0372001208429988</transactionID><br></ns:ChargeUserRequest_1><br></chargeUser><br></SOAP-ENV:Body><br></SOAP-ENV:Envelope></span></div>
<div><span class="comment"></span> </div>
<div><span class="comment">and the related WSDL as the following:</span></div>
<div><span class="comment">
<p><definitions name="WebService" targetNamespace="urn:charge....types" xmlns="<a href="http://schemas.xmlsoap.org/wsdl/">http://schemas.xmlsoap.org/wsdl/</a>" xmlns:ns1="urn:charge....types" xmlns:ns2="<a href="http://messages..../ws">http://messages..../ws</a>" xmlns:soap="<a href="http://schemas.xmlsoap.org/wsdl/soap/">http://schemas.xmlsoap.org/wsdl/soap/</a>" xmlns:tns="urn:....ws" xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"><br>
<types><br><schema targetNamespace="<a href="http://messages..../ws">http://messages..../ws</a>" xmlns="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xmlns:ns1="urn:charge....types" xmlns:ns2="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xmlns:soap11-enc="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>" xmlns:tns="<a href="http://messages..../ws">http://messages..../ws</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"><br>
<import namespace="urn:charge....types"/><br><import namespace="<a href="http://www.w3.org/2001/XMLSchema"/">http://www.w3.org/2001/XMLSchema"/</a>></p>
<p><complexType name="ChargeUserRequest"><br><complexContent><br><extension base="tns:Request"><br><sequence><br><element name="amount" type="double"/><br>
<element name="reasonCode" nillable="true" type="string"/><br><element name="taxable" type="boolean"/><br></sequence><br></extension><br></complexContent><br>
</complexType></p>
<p><complexType name="Request"><br><sequence><br><element name="appID" nillable="true" type="string"/><br><element name="token" nillable="true" type="string"/><br>
<element name="account" nillable="true" type="string"/><br><element name="transactionID" nillable="true" type="string"/><br></sequence><br></complexType></p>
<p></schema></p>
<p><schema targetNamespace="urn:charge....types" xmlns="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xmlns:ns2="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xmlns:ns3="<a href="http://messages..../ws">http://messages..../ws</a>" xmlns:soap11-enc="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>" xmlns:tns="urn:charge....types" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"><br>
<import namespace="<a href="http://messages..../ws"/">http://messages..../ws"/</a>><br><import namespace="<a href="http://www.w3.org/2001/XMLSchema"/">http://www.w3.org/2001/XMLSchema"/</a>></p>
<p><complexType name="chargeUser"><br><sequence><br><element name="ChargeUserRequest_1" nillable="true" type="ns3:ChargeUserRequest"/><br></sequence><br></complexType><br>
<complexType name="chargeUserResponse"><br><sequence><br><element name="result" nillable="true" type="ns3:ChargeUserResponse"/><br></sequence><br></complexType></p>
<p><element name="chargeUser" type="tns:chargeToBill"/><br><element name="chargeUserResponse" type="tns:chargeToBillResponse"/></p>
<p><message name="WebServiceInterface_chargeUser"><br><part element="ns1:chargeUser" name="parameters"/><br></message><br><message name="WebServiceInterface_chargeUserResponse"><br>
<part element="ns1:chargeUserResponse" name="result"/><br></message></p>
<p></schema></p>
<p><portType name="WebServiceInterface"><br><operation name="chargeToBill"><br><input message="tns:WebServiceInterface_chargeUser"/><br><output message="tns:WebServiceInterface_chargeUserResponse"/><br>
</operation></p>
<p><binding name="WebServiceInterfaceBinding" type="tns:WebServiceInterface"><br><soap:binding style="document" transport="<a href="http://schemas.xmlsoap.org/soap/http"/">http://schemas.xmlsoap.org/soap/http"/</a>><br>
<operation name="chargeUser"><br><soap:operation soapAction=""/><br><input><br><soap:body use="literal"/><br></input><br><output><br><soap:body use="literal"/><br>
</output><br></operation><br></binding></p>
<p><service name="WebService"><br><port binding="tns:WebServiceInterfaceBinding" name="WebServiceInterfacePort"><br><soap:address location="....."><br></port><br>
</service><br></definitions></p>
<p>Someone can help me on this problem?</p>
<p>Thanks,</p>
<p>Erique</p></span></div>