Skip to Content
author's profile photo Former Member
Former Member

How do I include XSD definition inside WSDL?

Hello,

I am pasting the WSDL and XSD (They were sent as a seperate files)

The Name space that was mentioned in the WSDL is different from where I am currently developing .

I would like to do the following 3 things

1. Include XSD inside WSDL definition

2. Change the existing Name space to the ones created now.

(the current name space is *http://abcd.com/SPAG*)

3. Is there any other free software that works like XML SPY?

The reference in the WSDL to the XSD is provided at "schema....... "

If I copy the XSD in place of <xsd schema></xsd schema> tabs

its generating me no message present or null exception

please help ....

The WSDL and XSD are as follows :

-


*WSDL* :

<?xml version="1.0" encoding="UTF-8"?>

http://schemas.xmlsoap.org/wsdl/"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:n="http://www.abcd.com/application/ws/network"

xmlns:svc="http://www.abcd.com/application/ws/network/service"

targetNamespace="http://www.abcd.com/application/ws/network/service">

<types>

<xsd:schema>

http://www.abcd.com/application/ws/network" schemaLocation="../schema/Network.xsd"/>

</xsd:schema>

</types>

<message name="NetworksRequest">

<part name="request" element="n:Networks"/>

</message>

<portType name="NetworkPortType">

<operation name="importNetworks">

<input message="svc:NetworksRequest"/>

</operation>

<operation name="deleteNetworks">

<input message="svc:NetworksRequest"/>

</operation>

</portType>

<binding name="NetworkBinding" type="svc:NetworkPortType">

http://schemas.xmlsoap.org/soap/http"/>

<operation name="importNetworks">

<soap:operation soapAction="importNetworks"/>

<input><soap:body use="literal"/></input>

</operation>

<operation name="deleteNetworks">

<soap:operation soapAction="deleteNetworks"/>

<input><soap:body use="literal"/></input>

</operation>

</binding>

<service name="Network">

<port name="NetworkPort" binding="svc:NetworkBinding">

<soap:address location="http://localhost:8080/axis/services/Network"/>

</port>

</service>

</definitions>

-


-


XSD :

http://www.w3.org/2001/XMLSchema"

xmlns:n="http://www.abcd.com/application/ws/network"

xmlns:nt="http://www.abcd.com/application/ws/networkType"

xmlns:att="http://www.abcd.com/application/ws/entityAttribute"

targetNamespace="http://www.abcd.com/application/ws/network"

elementFormDefault="qualified">

http://www.abcd.com/application/ws/entityAttribute" schemaLocation="../schema/EntityAttribute.xsd"/>

http://www.abcd.com/application/ws/networkType" schemaLocation="../schema/NetworkType.xsd"/>

<!-- Global Element Declarations -->

<element name="Networks" type="n:Networks"/>

<!-- Complex Types -->

<complexType name="Networks">

<sequence>

<element name="Network" type="n:Network" minOccurs="0" maxOccurs="unbounded"/>

</sequence>

</complexType>

<complexType name="Network">

<sequence>

<element name="description" type="n:descriptionString" minOccurs="0"/>

<element name="CustomAttributes" type="n:CustomAttributes" minOccurs="0"/>

</sequence>

<attribute name="name" type="n:nameString" use="required"/>

<attribute name="type" type="nt:nameString" default="General"/>

<attribute name="indenture" type="int"/>

</complexType>

<complexType name="CustomAttributes">

<sequence>

<element ref="att:CustomAttribute" minOccurs="0" maxOccurs="8"/>

</sequence>

</complexType>

<!-- Simple Types -->

<simpleType name="descriptionString">

<restriction base="string">

<maxLength value="64"/>

</restriction>

</simpleType>

<simpleType name="nameString">

<restriction base="string">

<maxLength value="64"/>

</restriction>

</simpleType>

</schema>

1. Please guide me how do I include XSD in the above structure

2. do I need to change NS in all the places in the above structure in order to change the existing name space to the current one?

3. Is there a free software that works like XML Spy in looking at webservice definitions?

Regards,

Nikhil

  • All useful replies will be rewarded ****

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 01:25 PM

    Hi,

    Change the wsdl will not change your service. I would suggest you to change your service and regenerate the wsdl based on it, otherwise, even if you change the wsdl, it will not reflect your real service.

    Regards.

    roberti

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 01:51 PM

    Hi,

    Check this link were u can find the Editor free down load,do it and do ur requirement.

    http://www.altova.com/download.html

    Regards,

    Phani

    Reward points if Helpful 😊

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Phani,

      I have installed it.

      but I dont get the activation code to my email inspite of 15 repeated trials

      Is there an alternate software for XML SPY?

      Edited by: nikhil a on Feb 1, 2008 6:28 AM

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 07:15 AM

    Hi,

    Check this link were u can find the Editor free down load,do it and do ur requirement.

    http://www.liquid-technologies.com/Download.aspx

    Regards,

    Rajgopal

    Reward points if Helpful 😊

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.