Hi, I want to utilize an axis web service in my asp.net (c#) code. I've done multiple web service integrations but this is one is a bit more strange and just not working correct.
Here's my situation. The AXIS server that is hosting the web service has the following charactaristics.
1. Unlike a normal web service, it does not provide a URL based WSDL, XSD files. When questioned about this, the response from the service developers was due to security.
2. But I was given an old version of those files by email. The files contain a WSDL, an XSD file. These files although are for an OLD TEST system, they are saying the schema is not different in the LIVE server. The only thing different is the endpoint URL location.
My current setup is Visual Web Developer Express on a C# language base. When I first got the files, I modified the WSDL file's endpoint url locations so that it would point to the LIVE service.
Once I modified it. I used Visual Studios Add service reference wizard to point to the WSDL file. I've done this by hosting the WSDL and the XSD's on my http://localhost/virtualdirectory method. When I did that I was able to see the service reference and all the goodness that comes with a working web service.
But now that I can start writing code.. I see some errors during debug / runtime.
Here's the Error ...
"
There was an error in serializing body of message SendRequest: 'There was an error generating the XML document.'. Please see InnerException for more details.
InnerException : System.InvalidOperationException
Message="Value of ItemElementName mismatches the type of ws.QueryIDType; you need to set it to ws.ItemChoiceType2.@QueryID."
"
Based on the result. What do you think it might be? Also Is it possible to work with WSDL, XSD without the service exposing them.
Here's my situation. The AXIS server that is hosting the web service has the following charactaristics.
1. Unlike a normal web service, it does not provide a URL based WSDL, XSD files. When questioned about this, the response from the service developers was due to security.
2. But I was given an old version of those files by email. The files contain a WSDL, an XSD file. These files although are for an OLD TEST system, they are saying the schema is not different in the LIVE server. The only thing different is the endpoint URL location.
My current setup is Visual Web Developer Express on a C# language base. When I first got the files, I modified the WSDL file's endpoint url locations so that it would point to the LIVE service.
Once I modified it. I used Visual Studios Add service reference wizard to point to the WSDL file. I've done this by hosting the WSDL and the XSD's on my http://localhost/virtualdirectory method. When I did that I was able to see the service reference and all the goodness that comes with a working web service.
But now that I can start writing code.. I see some errors during debug / runtime.
Here's the Error ...
"
There was an error in serializing body of message SendRequest: 'There was an error generating the XML document.'. Please see InnerException for more details.
InnerException : System.InvalidOperationException
Message="Value of ItemElementName mismatches the type of ws.QueryIDType; you need to set it to ws.ItemChoiceType2.@QueryID."
"
Based on the result. What do you think it might be? Also Is it possible to work with WSDL, XSD without the service exposing them.