cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt regarding XML spy.

Former Member
0 Kudos

Hi,

I want to test the given webservice before Implementing the Interface.

1) I opned the Altova XML Spy,

2) i opned the SOAP drop down menu bar as it is appearing on top.

3) i click on Create new soap request, then i entered the given WSDL file through Browse button, then i click on button "OK".

4) After that i am not able to find any difference in XML SPY, any one please let me know where i have done mistake.

Regards

dhanush.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Did you follow the following steps for Testing the Scenario Using a SOAP Client:

1)In the XML Spy® menu, choose SOAP -> Create new SOAP request. In the dialog window, select your wsdl file

2)XML Spy® now creates a proposal for the SOAP request, which you can edit.

3)In the menu, choose SOAP -> Send request to server

4)If the request is successful you will receive a SOAP response, which is empty in an asynchronous scenario.

Thanks

Former Member
0 Kudos

Hi Monica,

thanks for your valuble information.

for down loading WSDL from this URL : /people/shabarish.vijayakumar/blog/2006/03/23/rfcxiwebservice--a-complete-walkthrough-part-1

i copied whatever in this thread in wordpad saved it as "filename.wsdl"

is it correct way?

1)In the XML Spy® menu, choose SOAP -> Create new SOAP request. In the dialog window, select your wsdl file

after i have done as above step i am not able to find any thing.

Thanks

dhanush.

Former Member
0 Kudos

Boss,

Ur WSDL is not proper....i got ur problem...

<i>i copied whatever in this thread in wordpad saved it as "filename.wsdl"

is it correct way?>></i>

NOT CORRECT!!!!

u have to remove the character "-"......do one thing....open the WSDL(what u have saved) in XMP spy ...and manually remove all "-".....after that...check it in "grid"....

Now u will get what u want.....

**************

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

<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:intf="http://webservices.imacination.com/distance/Distance.jws" xmlns:impl="http://webservices.imacination.com/distance/Distance.jws" targetNamespace="http://webservices.imacination.com/distance/Distance.jws">

<wsdl:message name="getLongitudeResponse">

<wsdl:part name="getLongitudeReturn" type="xsd:double"/>

</wsdl:message>

<wsdl:message name="getLongitudeRequest">

<wsdl:part name="zip" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getLatitudeRequest">

<wsdl:part name="zip" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getLatitudeResponse">

<wsdl:part name="getLatitudeReturn" type="xsd:double"/>

</wsdl:message>

<wsdl:message name="getCityResponse">

<wsdl:part name="getCityReturn" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getCityRequest">

<wsdl:part name="zip" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getLocationResponse">

<wsdl:part name="getLocationReturn" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getStateResponse">

<wsdl:part name="getStateReturn" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getStateRequest">

<wsdl:part name="zip" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getLocationRequest">

<wsdl:part name="zip" type="xsd:string"/>

</wsdl:message>

<wsdl:message name="getDistanceResponse">

<wsdl:part name="getDistanceReturn" type="xsd:double"/>

</wsdl:message>

<wsdl:message name="getDistanceRequest">

<wsdl:part name="fromZip" type="xsd:string"/>

<wsdl:part name="toZip" type="xsd:string"/>

</wsdl:message>

<wsdl:portType name="Distance">

<wsdl:operation name="getState" parameterOrder="zip">

<wsdl:input name="getStateRequest" message="intf:getStateRequest"/>

<wsdl:output name="getStateResponse" message="intf:getStateResponse"/>

</wsdl:operation>

<wsdl:operation name="getLocation" parameterOrder="zip">

<wsdl:input name="getLocationRequest" message="intf:getLocationRequest"/>

<wsdl:output name="getLocationResponse" message="intf:getLocationResponse"/>

</wsdl:operation>

<wsdl:operation name="getCity" parameterOrder="zip">

<wsdl:input name="getCityRequest" message="intf:getCityRequest"/>

<wsdl:output name="getCityResponse" message="intf:getCityResponse"/>

</wsdl:operation>

<wsdl:operation name="getDistance" parameterOrder="fromZip toZip">

<wsdl:input name="getDistanceRequest" message="intf:getDistanceRequest"/>

<wsdl:output name="getDistanceResponse" message="intf:getDistanceResponse"/>

</wsdl:operation>

<wsdl:operation name="getLatitude" parameterOrder="zip">

<wsdl:input name="getLatitudeRequest" message="intf:getLatitudeRequest"/>

<wsdl:output name="getLatitudeResponse" message="intf:getLatitudeResponse"/>

</wsdl:operation>

<wsdl:operation name="getLongitude" parameterOrder="zip">

<wsdl:input name="getLongitudeRequest" message="intf:getLongitudeRequest"/>

<wsdl:output name="getLongitudeResponse" message="intf:getLongitudeResponse"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="DistanceSoapBinding" type="impl:Distance">

<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl:operation name="getState">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getStateRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getStateResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getLocation">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getLocationRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getLocationResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getCity">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getCityRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getCityResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getDistance">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getDistanceRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getDistanceResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getLatitude">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getLatitudeRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getLatitudeResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="getLongitude">

<wsdlsoap:operation soapAction=""/>

<wsdl:input name="getLongitudeRequest">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace"/>

</wsdl:input>

<wsdl:output name="getLongitudeResponse">

<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="DistanceService">

<wsdl:port name="Distance" binding="impl:DistanceSoapBinding">

<wsdlsoap:address location="http://webservices.imacination.com/distance/Distance.jws"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

******************

save the code as <u>FILE NAME</u>.WSDL

Now it will work....

regards

biplab

Former Member
0 Kudos

you need to create WSDL from your scenarion in ID and select that WSDL and you can make request.

if you are doing SOAP as sender then create wsdl for the sender interface(outbound) and it asks for URL then give similar to this

http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel

port:J2EE port.

Party:if you dont have leave it blank

service:your service name

Channel: CC name for your SOAP sender

Former Member
0 Kudos

Hi,

After removing the "-" also i am getting same problem, i am not able to see anything on XML SPY GRID.

Thanks

dhanush

Former Member
0 Kudos

Dhanush,

I think you can just ignore this error...for this particular wsld lots of people are getting error in XML Spy..

Just upload this in IR. It will work.

Nilesh

Former Member
0 Kudos

dear dhanush,

r u kidding??????????

i have given u the WSDL above....copy it and save it ...open with XML spy.....

I have tested it...its working fine...thats why I have pasted it.....

Check it in Grid,Text,WSDL/Scheme.......evreywhere it should work fine.

Regards

biplab

Former Member
0 Kudos

Hi,

As you said i have copied and past in one file. then i was opening it in XML SPY, it is giving error like: in grid it is showin some JUNK.

below it is showing like: wsdl is not well formatted etc. sorry to distrub you by asking you one after another.

thanks a lot

dhanush.

Former Member
0 Kudos

hi dhanush,

not a problem

r u sure about ur xml spy ??? was it install properly ?? check with some WSDL.....

if ok.....then do a last try man.....

save the wsdl i have pasted as "distance.wsdl"... and try to import it in IR.

I guess u know how to import WSDL into IR. Still if u don't know...

go to Externel defination->new->give any name->in catagory select "WSDL"->now u can upload the WSDL file...

after uploading save it...and go to "message" tab.... u can see lots of messages..

viz... getDistance etc......

If it shows any messages.... that means ur XML spy have some problem....

Regards

biplab

agasthuri_doss
Active Contributor
0 Kudos

Hi,

Try to install all the necessary commponents in XML Spy and try it out.

Regards

Agasthuri Doss

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi dhanush,

Go to FILE->OPEN->Choose the correct WSDL->go to SOAP->Create new request->click on ok->u will get (please select a soap operation name)->select the message interface->ok->again go to SOAP->send request to server.

Regards

biplab