<div>Hello,</div>
<div>&nbsp;</div>
<div>I&#39;m facing the same problem. I modified the Nusoap and it&#39;s possible to create soap messages desired by JBoss for some of the functions, but when I&#39;m using the same way to call other functions, the error as Douglas reported returned. </div>

<div>&nbsp;</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>&nbsp;</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&#39;t work too. I don&#39;t know what should be&nbsp;the&nbsp;xml like.</div>

<div>&nbsp;</div>
<div>The&nbsp;way works fine&nbsp;on another function, the difference between those 2 function is, another function doesn&#39;t set its own parameter, but only extends the Request. So I don&#39;t have any ideas about whether there is any relations.</div>

<div>&nbsp;</div>
<div>The&nbsp;issue soap message&nbsp;as below.</div>
<div>&nbsp;</div>
<div><span class="comment">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&quot;<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>&quot; xmlns:xsd=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot; xmlns:SOAP-ENC=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; xmlns:ns2410=&quot;<a href="http://tempuri.org/">http://tempuri.org</a>&quot;&gt;<br>
&lt;SOAP-ENV:Body&gt;<br>&lt;chargeUser xmlns=&quot;urn:charge....types&quot;&gt;<br>&lt;ns:ChargeUserRequest_1 xmlns:ns=&quot;<a href="http://messages..../ws">http://messages..../ws</a>&quot;&gt;<br>&lt;amount&gt;5&lt;/amount&gt;<br>
&lt;reasonCode&gt;456&lt;/reasonCode&gt;<br>&lt;taxable&gt;true&lt;/taxable&gt;<br>&lt;appID&gt;WEBSERVICE&lt;/appID&gt;<br>&lt;token&gt;GW2K4PYMUkFmrjtKWisLZqFYx&lt;/token&gt;<br>&lt;account&gt;123456&lt;/account&gt;<br>
&lt;transactionID&gt;0372001208429988&lt;/transactionID&gt;<br>&lt;/ns:ChargeUserRequest_1&gt;<br>&lt;/chargeUser&gt;<br>&lt;/SOAP-ENV:Body&gt;<br>&lt;/SOAP-ENV:Envelope&gt;</span></div>
<div><span class="comment"></span>&nbsp;</div>
<div><span class="comment">and the related WSDL&nbsp;as the following:</span></div>
<div><span class="comment">
<p>&lt;definitions name=&quot;WebService&quot; targetNamespace=&quot;urn:charge....types&quot; xmlns=&quot;<a href="http://schemas.xmlsoap.org/wsdl/">http://schemas.xmlsoap.org/wsdl/</a>&quot; xmlns:ns1=&quot;urn:charge....types&quot; xmlns:ns2=&quot;<a href="http://messages..../ws">http://messages..../ws</a>&quot; xmlns:soap=&quot;<a href="http://schemas.xmlsoap.org/wsdl/soap/">http://schemas.xmlsoap.org/wsdl/soap/</a>&quot; xmlns:tns=&quot;urn:....ws&quot; xmlns:xsd=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot;&gt;<br>
&lt;types&gt;<br>&lt;schema targetNamespace=&quot;<a href="http://messages..../ws">http://messages..../ws</a>&quot; xmlns=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot; xmlns:ns1=&quot;urn:charge....types&quot; xmlns:ns2=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot; xmlns:soap11-enc=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; xmlns:tns=&quot;<a href="http://messages..../ws">http://messages..../ws</a>&quot; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;&gt;<br>
&lt;import namespace=&quot;urn:charge....types&quot;/&gt;<br>&lt;import namespace=&quot;<a href="http://www.w3.org/2001/XMLSchema&quot;/">http://www.w3.org/2001/XMLSchema&quot;/</a>&gt;</p>
<p>&lt;complexType name=&quot;ChargeUserRequest&quot;&gt;<br>&lt;complexContent&gt;<br>&lt;extension base=&quot;tns:Request&quot;&gt;<br>&lt;sequence&gt;<br>&lt;element name=&quot;amount&quot; type=&quot;double&quot;/&gt;<br>
&lt;element name=&quot;reasonCode&quot; nillable=&quot;true&quot; type=&quot;string&quot;/&gt;<br>&lt;element name=&quot;taxable&quot; type=&quot;boolean&quot;/&gt;<br>&lt;/sequence&gt;<br>&lt;/extension&gt;<br>&lt;/complexContent&gt;<br>
&lt;/complexType&gt;</p>
<p>&lt;complexType name=&quot;Request&quot;&gt;<br>&lt;sequence&gt;<br>&lt;element name=&quot;appID&quot; nillable=&quot;true&quot; type=&quot;string&quot;/&gt;<br>&lt;element name=&quot;token&quot; nillable=&quot;true&quot; type=&quot;string&quot;/&gt;<br>
&lt;element name=&quot;account&quot; nillable=&quot;true&quot; type=&quot;string&quot;/&gt;<br>&lt;element name=&quot;transactionID&quot; nillable=&quot;true&quot; type=&quot;string&quot;/&gt;<br>&lt;/sequence&gt;<br>&lt;/complexType&gt;</p>

<p>&lt;/schema&gt;</p>
<p>&lt;schema targetNamespace=&quot;urn:charge....types&quot; xmlns=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot; xmlns:ns2=&quot;<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>&quot; xmlns:ns3=&quot;<a href="http://messages..../ws">http://messages..../ws</a>&quot; xmlns:soap11-enc=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; xmlns:tns=&quot;urn:charge....types&quot; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;&gt;<br>
&lt;import namespace=&quot;<a href="http://messages..../ws&quot;/">http://messages..../ws&quot;/</a>&gt;<br>&lt;import namespace=&quot;<a href="http://www.w3.org/2001/XMLSchema&quot;/">http://www.w3.org/2001/XMLSchema&quot;/</a>&gt;</p>

<p>&lt;complexType name=&quot;chargeUser&quot;&gt;<br>&lt;sequence&gt;<br>&lt;element name=&quot;ChargeUserRequest_1&quot; nillable=&quot;true&quot; type=&quot;ns3:ChargeUserRequest&quot;/&gt;<br>&lt;/sequence&gt;<br>&lt;/complexType&gt;<br>
&lt;complexType name=&quot;chargeUserResponse&quot;&gt;<br>&lt;sequence&gt;<br>&lt;element name=&quot;result&quot; nillable=&quot;true&quot; type=&quot;ns3:ChargeUserResponse&quot;/&gt;<br>&lt;/sequence&gt;<br>&lt;/complexType&gt;</p>

<p>&lt;element name=&quot;chargeUser&quot; type=&quot;tns:chargeToBill&quot;/&gt;<br>&lt;element name=&quot;chargeUserResponse&quot; type=&quot;tns:chargeToBillResponse&quot;/&gt;</p>
<p>&lt;message name=&quot;WebServiceInterface_chargeUser&quot;&gt;<br>&lt;part element=&quot;ns1:chargeUser&quot; name=&quot;parameters&quot;/&gt;<br>&lt;/message&gt;<br>&lt;message name=&quot;WebServiceInterface_chargeUserResponse&quot;&gt;<br>
&lt;part element=&quot;ns1:chargeUserResponse&quot; name=&quot;result&quot;/&gt;<br>&lt;/message&gt;</p>
<p>&lt;/schema&gt;</p>
<p>&lt;portType name=&quot;WebServiceInterface&quot;&gt;<br>&lt;operation name=&quot;chargeToBill&quot;&gt;<br>&lt;input message=&quot;tns:WebServiceInterface_chargeUser&quot;/&gt;<br>&lt;output message=&quot;tns:WebServiceInterface_chargeUserResponse&quot;/&gt;<br>
&lt;/operation&gt;</p>
<p>&lt;binding name=&quot;WebServiceInterfaceBinding&quot; type=&quot;tns:WebServiceInterface&quot;&gt;<br>&lt;soap:binding style=&quot;document&quot; transport=&quot;<a href="http://schemas.xmlsoap.org/soap/http&quot;/">http://schemas.xmlsoap.org/soap/http&quot;/</a>&gt;<br>
&lt;operation name=&quot;chargeUser&quot;&gt;<br>&lt;soap:operation soapAction=&quot;&quot;/&gt;<br>&lt;input&gt;<br>&lt;soap:body use=&quot;literal&quot;/&gt;<br>&lt;/input&gt;<br>&lt;output&gt;<br>&lt;soap:body use=&quot;literal&quot;/&gt;<br>
&lt;/output&gt;<br>&lt;/operation&gt;<br>&lt;/binding&gt;</p>
<p>&lt;service name=&quot;WebService&quot;&gt;<br>&lt;port binding=&quot;tns:WebServiceInterfaceBinding&quot; name=&quot;WebServiceInterfacePort&quot;&gt;<br>&lt;soap:address location=&quot;.....&quot;&gt;<br>&lt;/port&gt;<br>
&lt;/service&gt;<br>&lt;/definitions&gt;</p>
<p>Someone can help me on this problem?</p>
<p>Thanks,</p>
<p>Erique</p></span></div>