Question about web service

T

tascien

I am comparing the WSDL produced by Microsoft and the one produced by
Salesforce.com...

- The schema elements in Microsoft are under the
http://www.w3.org/2001/XMLSchema namespace.
- The schema elements in Salesforce.com are under the
http://schemas.xmlsoap.org/wsdl/ namespace, which is the default
namespace...

Is it allowed to put these two under any namespace? If so, how could I
make a wildcard SelectNodes to match any element under those schemas...
SelectNodes("*:element) does not work! I am building my own WSDL
client.

Tascien


-----------------------------------------------------------------

See examples below...

Salesforce.com example WSDL

<definitions targetNamespace="urn:enterprise.soap.sforce.com"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:enterprise.soap.sforce.com"
xmlns:fns="urn:fault.enterprise.soap.sforce.com"
xmlns:ens="urn:sobject.enterprise.soap.sforce.com">
<types>

<schema elementFormDefault="qualified"
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:sobject.enterprise.soap.sforce.com">

<import namespace="urn:enterprise.soap.sforce.com"/>


<!-- Base sObject (abstract) -->
<complexType name="sObject">
<sequence>
<element name="fieldsToNull"
type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
<element name="Id" type="tns:ID"
nillable="true" minOccurs="0" maxOccurs="1" />
</sequence>
</complexType>




Microsoft Example WSDL

<wsdl:definitions xmlns:s1="urn:sobject.enterprise.soap.sforce.com"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://www.eBusinessExplorer.com/Exchange/Salesforce"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://www.eBusinessExplorer.com/Exchange/Salesforce"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://www.eBusinessExplorer.com/Exchange/Salesforce">
<s:import namespace="urn:sobject.enterprise.soap.sforce.com" />
<s:element name="CreateLeadTask">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="UserName"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Password"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Lead"
type="s1:Lead" />
<s:element minOccurs="0" maxOccurs="1" name="Task"
type="s1:Task" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="SetResults">
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top