R
Razzie
Hey all,
I have a SOAP envelope with which I try to communicate to a webservice.
Everything is fine, but when I try to access a parameter of the webservice
method, I get the Object reference not set to an instance of the object
error.
This is the method:
public string query(string type, string[] someValues)
{
// As soon as I try to access a parameter, eg. type.Length or
someValues.Length, I get the error
}
The soap body looks like this:
msg = msg & "<soap:Body>"
msg = msg & "<query xmlns='xxxxxx'>"
msg = msg & "<type>type1</type>"
msg = msg & "<someValues>"
msg = msg & "<string>value1</string>"
msg = msg & "<string>value2</string>"
msg = msg & "<string>value3</string>"
msg = msg & "<string>value4</string>"
msg = msg & "</someValues>"
msg = msg & "</query>"
msg = msg & "</soap:Body>"
I have a SOAP envelope with which I try to communicate to a webservice.
Everything is fine, but when I try to access a parameter of the webservice
method, I get the Object reference not set to an instance of the object
error.
This is the method:
public string query(string type, string[] someValues)
{
// As soon as I try to access a parameter, eg. type.Length or
someValues.Length, I get the error
}
The soap body looks like this:
msg = msg & "<soap:Body>"
msg = msg & "<query xmlns='xxxxxx'>"
msg = msg & "<type>type1</type>"
msg = msg & "<someValues>"
msg = msg & "<string>value1</string>"
msg = msg & "<string>value2</string>"
msg = msg & "<string>value3</string>"
msg = msg & "<string>value4</string>"
msg = msg & "</someValues>"
msg = msg & "</query>"
msg = msg & "</soap:Body>"