[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 729
  • Last Modified:

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:

<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" />    

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?

1 Solution
theo kouwenhovenCommented:
Namespaces are not related to the data, but to the interpretation of it
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.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now