Situation:
I built a webservice consumer from a wsdl and used that consumer to build
the schemas for the input and output. However, when I pull the schemas into
my map, they aren't complete. They show only down to the tns:request
element as shown below in the target :
What I am expecting to see is a schema like this:
<tem:GetUTC>
<tem:request>
<cho:City>?</cho:City>
<cho:Country>?</cho:Country>
<cho:LocalDateTime>?</cho:LocalDateTime>
<cho:OlsonTimeZoneId>?</cho:OlsonTimeZoneId>
<cho:PostalCode>?</cho:PostalCode>
</tem:request>
</tem:GetUTC>
Solution:
In the provided WSDL, the schemas are referring to localhost:60612 location:-
<wsdl:types>
<xsd:schema targetNamespace="http://test.internal/UTCService/Imports">
<xsd:import schemaLocation="http://localhost:60212/UTCService.svc?xsd=xsd0" namespace="http://test.internal/UTCService" />
<xsd:import schemaLocation="http://localhost:60212/UTCService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
</xsd:schema>
</wsdl:types>
Try replacing localhost with the actual IP of the machine or server on which this schemas are deployed, so that it is accessible from any location.
Comments
0 comments
Article is closed for comments.