M
Maxim
Hello, everyone!
I'm trying to create a WebService client using OPENNETCF. First I created a
client app without OPENNET. I works fine with the exception that
it doesn't add security headers to requests. So I decided to move to
OPENNET. I created Proxy wrapper class and tried to use it. But the client
raises a strange exception:
"No Deserializer found to deserialize a
'http://com/clarkston/cts/webservice/animal/search/AnimalSearchWSv2.wsdl:cri
teria' using encoding
style 'null', [java.lang.IllegalArgumentException] "
Following is my code for the Wrapper class:
class AnimalSearchWSv2_Wrapper : AnimalSearchWSv2
{
public AnimalSearchWSv2_Wrapper()
{
}
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://com/clark
ston/cts/webservice/animal/search/AnimalSearchWSv2.ws
dl", RequestNamespace =
"http://com/clarkston/cts/webservice/animal/search/AnimalSearchWSv2.wsdl",
ResponseElementName =
"StockQuotes", ResponseNamespace =
"http://stockservice.contoso.com/wse/samples/2003/06", Use =
System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle =
System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.SoapElementAttribute("return")]
public new
com_clarkston_cts_webservice_animal_search_value_AnimalSearchResultWSValue
executeSearch(com_clarkston_cts_webservice_animal_search_value_AnimalSearchC
riteriaWSValue criteria)
{
object[] results = this.Invoke("executeSearch", new object[] {
criteria });
return
((com_clarkston_cts_webservice_animal_search_value_AnimalSearchResultWSValue
)(results[0]));
}
}
WebService page is
https://www.clia.livestockid.ca/CLTS/public/help/en/webservices/index.htm.
Can anybody tell me what do I do wrong?
Thanks in advance.
I'm trying to create a WebService client using OPENNETCF. First I created a
client app without OPENNET. I works fine with the exception that
it doesn't add security headers to requests. So I decided to move to
OPENNET. I created Proxy wrapper class and tried to use it. But the client
raises a strange exception:
"No Deserializer found to deserialize a
'http://com/clarkston/cts/webservice/animal/search/AnimalSearchWSv2.wsdl:cri
teria' using encoding
style 'null', [java.lang.IllegalArgumentException] "
Following is my code for the Wrapper class:
class AnimalSearchWSv2_Wrapper : AnimalSearchWSv2
{
public AnimalSearchWSv2_Wrapper()
{
}
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://com/clark
ston/cts/webservice/animal/search/AnimalSearchWSv2.ws
dl", RequestNamespace =
"http://com/clarkston/cts/webservice/animal/search/AnimalSearchWSv2.wsdl",
ResponseElementName =
"StockQuotes", ResponseNamespace =
"http://stockservice.contoso.com/wse/samples/2003/06", Use =
System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle =
System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.SoapElementAttribute("return")]
public new
com_clarkston_cts_webservice_animal_search_value_AnimalSearchResultWSValue
executeSearch(com_clarkston_cts_webservice_animal_search_value_AnimalSearchC
riteriaWSValue criteria)
{
object[] results = this.Invoke("executeSearch", new object[] {
criteria });
return
((com_clarkston_cts_webservice_animal_search_value_AnimalSearchResultWSValue
)(results[0]));
}
}
WebService page is
https://www.clia.livestockid.ca/CLTS/public/help/en/webservices/index.htm.
Can anybody tell me what do I do wrong?
Thanks in advance.