NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to create skeleton for Soap Server Code from WSDL


Joined: 11 Dec 2014
Posts: 1
Reply with quote
Hi,

we have an interface defined on our ESB, which still needs to be implemented.
I received a wsdl and xsd from the administrators from the ESB, and now I have to develop the code which implements this wsdl (Soap Server, not consumer!!)

So something like this :
$server = new soap_server;

//register wsdl
$server->configureWSDL('soap', '');

//register a function that works on server
$server->register('GetNOLSData',array("xmldata" => "xsd:string"),array("result" => "xsd:string"),"urn:ocm","urn:urn:ocm#GetNOLSData", "document", "encoded");



Is there any tool which allows me already to create a kind of code skeleton that implements this WSDL

Structure wsdl :
<wsdl:definitions xmlns:TSTAPP="http://www.xxxxxxxx.com/wsdl/esb/TSTAPP/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://www.xxxxxxxx.com/xsd/esb/TSTAPP"
xmlns:xsd2="http://www.xxxxxxxx.com/xsd/esb/TSTAPP"
xmlns:esb="http://www.xxxxxxxx.com/xsd/esb/ESBCommonTypes"
name="TSTAPP"
targetNamespace="http://www.xxxxxxxx.com/wsdl/esb/TSTAPP/">

<wsdl:types>
<xsd:schema xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
<xsd:import namespace="http://www.xxxxxxxx.com/xsd/esb/ESBCommonTypes"
schemaLocation="../../../xsd/esb/ESBCommonTypes-v01.80.xsd"/>
</xsd:schema>


<xsd:schema targetNamespace="http://www.xxxxxxxx.com/wsdl/esb/TSTAPP/">
<xsd:element name="NewOperation">
<xsd:complexType>
<xsd:sequence>

<xsd:element name="in" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="NewOperationResponse">
<xsd:complexType>
<xsd:sequence>

<xsd:element name="out" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

</xsd:schema>
<xsd:schema xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
<xsd:import namespace="http://www.xxxxxxxx.com/xsd/esb/TSTAPP"
schemaLocation="../../../xsd/esb/LOC1/TSTAPP.xsd"/>
</xsd:schema>
</wsdl:types>
<wsdl:message xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" name="ESBHeader">
<wsdl:part name="esbHeader" element="esb:header"/>
</wsdl:message>
<wsdl:message name="GetSRVC1DataRequest">
<wsdl:part element="xsd2:GetSRVC1Data" name="parameters"/>
</wsdl:message>
<wsdl:message name="GetSRVC1DataResponse">
<wsdl:part element="xsd2:GetSRVC1DataResponse" name="parameters"/>
</wsdl:message>


Any help is most welcome Smile
View user's profileFind all posts by Stefaan.SomersSend private message


Joined: 05 Aug 2014
Posts: 4
Reply with quote
Hi,

I have just the same question! Any help is highly appreciated!

Thanks in advance!
View user's profileFind all posts by invekcSend private message
How to create skeleton for Soap Server Code from WSDL
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic