Modify a WSDL generated by URL with specific one (no 'Element')
Hi,
I have generated a WSDL from this URL https://<myserver>/nl/jsp/schemawsdl.jsp?schema=nms:rtEvent for the Message Center
After, I've imported the XML file in a SOAP UI proejct and modified pushEvent request in a semi-customized request.
I will have SOAP requestS written like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:nms:rtEvent">
<soapenv:Header/>
<soapenv:Body>
<urn:PushEvent>
<urn:sessiontoken>user/pwd</urn:sessiontoken>
<urn:domEvent>
<rtEvent type="nameEvent" email="name.surname@mail.com">
<ctx>
<param1>stringField</param1>
<param2>intergerField</param2>
<param3>dateField</param3>
</ctx>
</rtEvent>
</urn:domEvent>
</urn:PushEvent>
</soapenv:Body>
</soapenv:Envelope>
All the SOAP requests will be similar to this one, but each request will have a different number of parameters inside <ctx></ctx>
I was asked to modify the original WSDL (fragment below) since "Element" is too generic:
<s:complexType name="Element">
<s:sequence>
<s:any processContents="lax"/>
</s:sequence>
</s:complexType>
<s:element name="PushEvent">
<s:complexType>
<s:sequence>
<s:element name="sessiontoken" type="s:string" minOccurs="1" maxOccurs="1"/>
<s:element name="domEvent" type="tns:Element" minOccurs="1" maxOccurs="1"/>
</s:sequence>
</s:complexType>
</s:element>
How should I modify che initial WSDL properly?
Does it exist an automatic way to do this thing?
Thank you in advance!
Salvatore