Link to home
Start Free TrialLog in
Avatar of creatingworlds
creatingworlds

asked on

How do I consume an AXIS2 Web Service in C#

One of our departments created an AXIS2 Web Service in JAVA so we can retrieve data for our IVR's.  Unfortunately the current systems we have do not consume web services, so I'm required to develop some middleware that consumes the web service and then the IVR communicates with my middleware to get the data it needs.   I was able to add the web service as a reference to the application, but when I build, I get this error:

Error      7      Schema item 'complexType' named 'SchemaType' from namespace 'http://xmlbeans.apache.org/xsd'.       App_WebReferences/DolEx/      

I am not sure how to proceed and time is critical on getting this web service running.  

I'm running Visual Studio 2008 SP1, using C# and I added the web reference by right-clicking in the solution explorer and clicking "Add Web Reference"
ASKER CERTIFIED SOLUTION
Avatar of kitts
kitts

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of creatingworlds
creatingworlds

ASKER

Thanks for your help.  The above information helped me understand what the problem was, unfortunately the web service we are using is 3rd party, and I have no control over any of the information on that particular server / service.  Thanks again!
I am just adding some more information here. Even if you dont have control over the AXIS web service/server, you could get the wsdl file by browsing their webservice in IE. Then save it to your local IIS root. Then use your local wsdl location to generate proxy class(using wsdl.exe). In this way you could modify the wsdl until all the errors are fixed and a proxy class is generated. Then only thing you need to do is to add the newly generated proxy class file in your project and update the "this.url" property inside the proxy class file to match the other AXIS webservice. Hope this helps.