Consuming a .Net service with AXIS
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ross_Rankin
Posted On:   Tuesday, March 7, 2006 02:25 PM

We have a vendor to our commerce system with whom we wish to trade orders. They have a .Net SOAP service that they use with other customers. However, all these other customers are Microsoft users as well. We're the first Java customer. Anyway, I found through a few Google searches that I can get a WSDL from the service. However, this WSDL is not complete. It falling very short of what I need and have seen generated from other WSDLs using WSDL2Java. Looking further, I found their .xsd files and trying making my own version of the WSDL importing in the .xsd and this did not work either. So I have tried writing my own version of the WSDL and this hasn't been worked well either. It's driving me nuts because the vendor says it's our problem becasue other   More>>

We have a vendor to our commerce system with whom we wish to trade orders. They have a .Net SOAP service that they use with other customers. However, all these other customers are Microsoft users as well. We're the first Java customer. Anyway, I found through a few Google searches that I can get a WSDL from the service. However, this WSDL is not complete. It falling very short of what I need and have seen generated from other WSDLs using WSDL2Java.



Looking further, I found their .xsd files and trying making my own version of the WSDL importing in the .xsd and this did not work either. So I have tried writing my own version of the WSDL and this hasn't been worked well either. It's driving me nuts because the vendor says it's our problem becasue other customers use the service. However I know that there are problems with the code generated WSDLs from the .Net platform, there has to be tweaks to the .asmx file.



Can someone look at the files and help me go in the right direction. I'm pretty new to SOAP and have only used AXIS and consumed simple services. Thanks.



The service is here:

http://portal.suppliesnet.net/PurchaseOrders/purchaseorder.asmx



The WSDL file generated is here:

http://portal.suppliesnet.net/PurchaseOrders/purchaseorder.asmx?WSDL



The .xsd files are here:

http://portal.suppliesnet.net/PurchaseOrders/WebservicePurchaseOrdersInbound.xsd

http://portal.suppliesnet.net/PurchaseOrders/WebServicePurchaseOrderAcknowledgment.xsd



Thanks.

Ross
   <<Less

Re: Consuming a .Net service with AXIS

Posted By:   Ankur_Lamba  
Posted On:   Friday, March 24, 2006 04:57 PM

Using the following ant script, i could connect and generate interfaces defined in the wsdl you mentioned: -























































fork="true"
failonerror="true"
classpathref="axis.classpath"
>






















just change the property axis.dist.dir, to point to your distribution of axis and make sure the lib directory has all the jars that a "happy axis" (check axis documentation for installation) requires.

About | Sitemap | Contact