Does the message match the WSDL?

R

RH

A vendor that I must integrate to has provided me with an example message and a WSDL file. I don't believe they have accurately specified the WSDL. Can anyone confirm this

Example Request Message ...

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:namesp4="http://xml.apache.org/xml-soap"
SOAP-ENV:encodingStyle="http://www.w3.org/2001/06/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://www.w3.org/2001/06/soap-encoding"
xmlns:SOAP-ENV="http://www.w3.org/2001/06/soap-envelope"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Header><IncID xsi:type="xsd:string"></IncID><IncRef xsi:type="xsd:string"></IncRef><SeqNum xsi:type="xsd:int"></SeqNum><FFEWorkId xsi:type="xsd:string"></FFEWorkId><MsgCreateTime xsi:type="xsd:string"></MsgCreateTime></SOAP-ENV:Header><SOAP-ENV:Body><FFE:UpdateTCSIncident xmlns:FFE="FFE"><UpdateTCSIncidentStc xsi:type="namesp4:SOAPStruct"><IncidentStc xsi:type="namesp4:SOAPStruct"><IncID xsi:type="xsd:string"></IncID><IncRef xsi:type="xsd:string"></IncRef><SeqNum xsi:type="xsd:int"></SeqNum><FFEWorkId xsi:type="xsd:string"></FFEWorkId><LastUpdTime xsi:type="xsd:string"></LastUpdTime></IncidentStc><ResourceStc xsi:type="namesp4:SOAPStruct"><PayrollNum xsi:type="xsd:string"></PayrollNum><ResID xsi:type="xsd:string"></ResID><FFEStatCode xsi:type="xsd:string"></FFEStatCode><FFEStatName xsi:type="xsd:string"></FFEStatName><ETA xsi:type="xsd:string"></ETA><ETR xsi:type="xsd:string"></ETR><AOS xsi:type="xsd:string"></AOS></ResourceStc><Notes SOAP-ENC:arrayType="namesp4:SOAPStruct[2]" xsi:type="SOAP-ENC:Array"><item xsi:type="namesp4:SOAPStruct"><LogCatID xsi:type="xsd:string"></LogCatID><LogSubCatID xsi:type="xsd:string"></LogSubCatID><LogComment xsi:type="xsd:string"></LogComment></item><item xsi:type="namesp4:SOAPStruct"><LogCatID xsi:type="xsd:string"></LogCatID><LogSubCatID xsi:type="xsd:string"></LogSubCatID><LogComment xsi:type="xsd:string"></LogComment></item></Notes></UpdateTCSIncidentStc></FFE:UpdateTCSIncident></SOAP-ENV:Body></SOAP-ENV:Envelope

Example response message...

<?xml version="1.0"?><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:apache="http://xml.apache.org/xml-soap"
xmlns:SOAP-ENV="http://www.w3.org/2001/06/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2001/06/soap-encoding"
SOAP-ENV:encodingStyle="http://www.w3.org/2001/06/soap-encoding"><SOAP-ENV:Body><FFE:UpdateTCSIncidentResponse xmlns:FFE="FFE"><UpdateTCSIncidentResponseStc SOAP-ENC:arrayType="apache:SOAPStruct[1]" xsi:type="SOAP-ENC:Array"><item xsi:type="apache:SOAPStruct"><status xsi:type="xsd:int">0</status><Error xsi:type="xsd:string"></Error></item></UpdateTCSIncidentResponseStc></FFE:UpdateTCSIncidentResponse></SOAP-ENV:Body></SOAP-ENV:Envelope

WSDL...

<?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:FFE="FFE" targetNamespace="FFE" name="FFE"><types><xsd:schema targetNamespace="FFE" xmlns="FFE" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://www.w3.org/2001/06/soap-encoding" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" elementFormDefault="qualified"><xsd:complexType name="IncidentStcType"><xsd:all><xsd:element name="IncID" type="xsd:string"/><xsd:element name="IncRef" type="xsd:string"/><xsd:element name="SeqNum " type="xsd:string"/><xsd:element name="FFEWorkId" type="xsd:string"/><xsd:element name="LastUpdTime " type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType name="ResourceStcType"><xsd:all><xsd:element name="PayrollNum" type="xsd:string"/><xsd:element name="ResID" type="xsd:string"/><xsd:element name="FFEStatCode" type="xsd:string"/><xsd:element name="FFEStatName" type="xsd:string"/><xsd:element name="ETA" type="xsd:string"/><xsd:element name="ETR" type="xsd:string"/><xsd:element name="AOS" type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType name="NoteItemType"><xsd:all><xsd:element name="LogCatID" type="xsd:string"/><xsd:element name="LogSubCatID" type="xsd:string"/><xsd:element name="LogComment" type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType name="NotesType"><xsd:all><xsd:element name="Notes" type="FFE:NoteItemType"/></xsd:all></xsd:complexType><xsd:complexType name="UpdateTCSIncidentStcType"><xsd:all><xsd:element name="IncidentStc" type="FFE:IncidentStcType"/><xsd:element name="ResourceStc" type="FFE:ResourceStcType"/><xsd:element name="Notes" type="FFE:NotesType"/></xsd:all></xsd:complexType><xsd:complexType name="UpdateTCSIncidentType"><xsd:all><xsd:element name="UpdateTCSIncidentStc" type="FFE:UpdateTCSIncidentStcType"/></xsd:all></xsd:complexType><xsd:complexType name="UpdateTCSIncidentResponseStcType"><xsd:all><xsd:element name="Status" type="xsd:int"/></xsd:all></xsd:complexType><xsd:complexType name="UpdateTCSIncidentResponseType"><xsd:all><xsd:element name="UpdateTCSIncidentResponseStc" type="FFE:UpdateTCSIncidentResponseStcType"/></xsd:all></xsd:complexType></xsd:schema></types><message name="UpdateTCSIncident"><part name="UpdateTCSIncident" type="FFE:UpdateTCSIncidentType"/></message><message name="UpdateTCSIncidentResponse"><part name="UpdateTCSIncidentResponse" type="FFE:UpdateTCSIncidentResponseType"/></message><portType name="FFEPortType"><operation name="UpdateTCSIncident"><input message="FFE:UpdateTCSIncident"/><output message="FFE:UpdateTCSIncidentResponse"/></operation></portType><binding name="FFEBinding" type="FFE:FFEPortType"><soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/><operation name="UpdateTCSIncident"><soap:eek:peration soapAction="http://nslivdev1:8080/FFE"/><input><soap:body use="literal"/></input><output><soap:body use="literal"/></output></operation></binding><service name="FFEService"><port name="FFEPort" binding="FFE:FFEBinding"><soap:address location="http://nslivdev1:8080/FFE"/></port></service></definitions>
 
D

Dino Chiesa [Microsoft]

Looks to me like the messages are SOAP encoded, while the WSDL specifies
Literal encoding.
They don't match.

-Dino


RH said:
A vendor that I must integrate to has provided me with an example message
and a WSDL file. I don't believe they have accurately specified the WSDL.
Can anyone confirm this?
Example Request Message ....

<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:namesp4="http://xml.apache.org/xml-soap"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://www.w3.org/2001/06/soap-encoding"
xmlns:SOAP-ENV="http://www.w3.org/2001/06/soap-envelope"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Header><IncID
xsi:type="xsd:string"></IncID><IncRef xsi:type="xsd:string"></IncRef><SeqNum
xsi:type="xsd:int"></SeqNum><FFEWorkId
xsi:type="xsd:string"></FFEWorkId><MsgCreateTime
xsi:type="xsd:string"></MsgCreateTime></SOAP-ENV:Header><SOAP-ENV:Body><FFE:
UpdateTCSIncident xmlns:FFE="FFE"><UpdateTCSIncidentStc
xsi:type="namesp4:SOAPStruct"><IncidentStc
xsi:type="namesp4:SOAPStruct"><IncID xsi:type="xsd:string"></IncID><IncRef
xsi:type="xsd:string"></IncRef><SeqNum
xsi:type="xsd:int"></SeqNum><FFEWorkId
xsi:type="xsd:string"></FFEWorkId><LastUpdTime
xsi:type="xsd:string"></LastUpdTime></IncidentStc><ResourceStc
xsi:type="namesp4:SOAPStruct"><PayrollNum
xsi:type="xsd:string"></PayrollNum><ResID
xsi:type="xsd:string"></ResID><FFEStatCode
xsi:type="xsd:string"></FFEStatCode><FFEStatName
xsi:type="xsd:string"></FFEStatName><ETA xsi:type="xsd:string"></ETA><ETR
xsi:type="xsd:string"></ETR><AOS
xsi:type="xsd:string"></AOS></ResourceStc><Notes
SOAP-ENC:arrayType="namesp4:SOAPStruct[2]" xsi:type="SOAP-ENC:Array"><item
xsi:type="namesp4:SOAPStruct"><LogCatID
xsi:type="xsd:string"></LogCatID><LogSubCatID
xsi:type="xsd:string"></LogSubCatID><LogComment
xsi:type="xsd:string"></LogComment></item><item
xsi:type="namesp4:SOAPStruct"><LogCatID
xsi:type="xsd:string"></LogCatID><LogSubCatID
xsi:type="xsd:string"></LogSubCatID><LogComment
xsi:type="xsd:string"> said:
Example response message....

<?xml version="1.0"?><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:apache="http://xml.apache.org/xml-soap"
xmlns:SOAP-ENV="http://www.w3.org/2001/06/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2001/06/soap-encoding"
SOAP-ENV:encodingStyle="http://www.w3.org/2001/06/soap-encoding"><SOAP-ENV:B
ody><FFE:UpdateTCSIncidentResponse
xmlns:FFE="FFE"><UpdateTCSIncidentResponseStc
SOAP-ENC:arrayType="apache:SOAPStruct[1]" xsi:type="SOAP-ENC:Array"><item
xsi:type="apache:SOAPStruct"><status xsi:type="xsd:int">0</status><Error
xsi:type="xsd:string"> said:
WSDL....

<?xml version="1.0" encoding="UTF-8"?><definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:FFE="FFE"
targetNamespace="FFE" name="FFE"><types><xsd:schema targetNamespace="FFE"
xmlns="FFE" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENC="http://www.w3.org/2001/06/soap-encoding"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
elementFormDefault="qualified"><xsd:complexType
name="IncidentStcType"><xsd:all><xsd:element name="IncID"
type="xsd:string"/><xsd:element name="IncRef"
type="xsd:string"/><xsd:element name="SeqNum "
type="xsd:string"/><xsd:element name="FFEWorkId"
type="xsd:string"/><xsd:element name="LastUpdTime "
type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType
name="ResourceStcType"><xsd:all><xsd:element name="PayrollNum"
type="xsd:string"/><xsd:element name="ResID" type="xsd:string"/><xsd:element
name="FFEStatCode" type="xsd:string"/><xsd:element name="FFEStatName"
type="xsd:string"/><xsd:element name="ETA" type="xsd:string"/><xsd:element
name="ETR" type="xsd:string"/><xsd:element name="AOS"
type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType
name="NoteItemType"><xsd:all><xsd:element name="LogCatID"
type="xsd:string"/><xsd:element name="LogSubCatID"
type="xsd:string"/><xsd:element name="LogComment"
type="xsd:string"/></xsd:all></xsd:complexType><xsd:complexType
name="NotesType"><xsd:all><xsd:element name="Notes"
type="FFE:NoteItemType"/></xsd:all></xsd:complexType><xsd:complexType
name="UpdateTCSIncidentStcType"><xsd:all><xsd:element name="IncidentStc"
type="FFE:IncidentStcType"/><xsd:element name="ResourceStc"
type="FFE:ResourceStcType"/><xsd:element name="Notes"
type="FFE:NotesType"/></xsd:all></xsd:complexType><xsd:complexType
name="UpdateTCSIncidentType"><xsd:all><xsd:element
name="UpdateTCSIncidentStc"
type="FFE:UpdateTCSIncidentStcType"/></xsd:all></xsd:complexType><xsd:comple
xType name="UpdateTCSIncidentResponseStcType"><xsd:all><xsd:element
name="Status" type="xsd:int"/></xsd:all></xsd:complexType><xsd:complexType
name="UpdateTCSIncidentResponseType"><xsd:all><xsd:element
name="UpdateTCSIncidentResponseStc"
type="FFE:UpdateTCSIncidentResponseStcType"/></xsd:all></xsd:complexType></x
sd:schema></types><message name="UpdateTCSIncident"><part
name="UpdateTCSIncident"
type="FFE:UpdateTCSIncidentType"/></message><message
name="UpdateTCSIncidentResponse"><part name="UpdateTCSIncidentResponse"
type="FFE:UpdateTCSIncidentResponseType"/></message><portType
name="FFEPortType"><operation name="UpdateTCSIncident"><input
message="FFE:UpdateTCSIncident"/><output
message="FFE:UpdateTCSIncidentResponse"/></operation></portType><binding
name="FFEBinding" type="FFE:FFEPortType"><soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/><operation
name="UpdateTCSIncident"><soap:eek:peration
soapAction="http://nslivdev1:8080/FFE"/><input><soap:body
use="literal"/></input><output><soap:body
use="literal"/></output></operation></binding><service
name="FFEService"><port name="FFEPort"
binding="FFE:FFEBinding"><soap:address
location="http://nslivdev1:8080/FFE"/></port></service></definitions>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,708
Messages
2,569,347
Members
44,653
Latest member
Angus30T19

Latest Threads

Top