Issue with serialization of XML

28 views
Skip to first unread message

Hardik

unread,
Dec 5, 2024, 11:06:38 AM12/5/24
to scalaxb
Hello,

I have generated classes using scalaxb for following wsdl (showing only a part):

<xs:complexType name="testPoll">
    <xs:sequence>
      <xs:element name="test" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>

<wsdl:message name="poll">
    <wsdl:part name="arg0" type="tns:testPoll">
    </wsdl:part>

<wsdl:operation name="poll">
      <wsdl:input message="tns:poll" name="poll">
    </wsdl:input>

The classes generated dont have anything with name "arg0". When I use scalaxb to serialize the object to xml, everything seems right but its missing an arg0 tag :

<soapenv: Envelope xmlns:soapenv="someenv" xmlns:ser="somenamespace">
<soapenv:Body>
 <ser:poll>
     <arg0>
       <test>HelloWorld</test>
     </arg0>
 </ser:poll>
</soapenv:Body>
</soapenv: Envelope>

Can you please advise?
Thank you.





Reply all
Reply to author
Forward
0 new messages