WSDL types question

I have a wsdl file that was automatically generated by a a windows client when a service reference was added for the WCF service in Visual Studio.

I'm trying to use gsoap under linux to access this web service and I'm trying to understand exactly the wsdl file as I'm having some problems because the interface returns a stream and not a simple int or string type.

I understnd that the types element describes the data types used between the client and the server.

Here is the types element:

<wsdl:types>    
<xsd:schema targetNamespace="http://tempuri.org/Imports">      
<xsd:import namespace="http://tempuri.org/" />      
<xsd:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />      
<xsd:import namespace="http://schemas.microsoft.com/Message" />    
</xsd:schema>  
</wsdl:types>

Open in new window


What exactly does each of the lines mean in the types element??
And how do they relate to the data that is exchanged between client and server?

Thanks
Wanting2LearnManAsked:
Who is Participating?
 
apeterConnect With a Mentor Commented:
In WCF, the namespace for a service should be a valid URN. Else it should be default namespace(http://tempuri.org) or it should be empty.

namespace just scopes the name of the interface in the WSDL.
0
 
MurpheyApplication ConsultantCommented:
Namespaces are not related to the data, but to the interpretation of it
http://www.w3schools.com/xml/xml_namespaces.asp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.