I am not sure really how to explain this but here goes.
I am creating some new web services and I want to be able to post data like
the following:
<Data>
<some value>1</some value>
<more info>2</more info>
</Data>
I have the object built and I can call the web service but all I get in
return is "ERROR". My webservice looks like this:
[WebMethod]
public string GeneratePDFBOL( BillInfo bi)
{
try
{
return bi.BillNumber;
}
catch(Exception e)
{
return e.Message;
}
}
If I take out the BillInfo and add a string value in there, I can post data
but when I try to pass complex data, it does not work.I have searched all
over and I can not find anything on how to do this. It seems to work for Soap
but I want to have unified calls for both SOAP and HTTP-POST.
Can someone point me in the right direction?
Jerel
I am creating some new web services and I want to be able to post data like
the following:
<Data>
<some value>1</some value>
<more info>2</more info>
</Data>
I have the object built and I can call the web service but all I get in
return is "ERROR". My webservice looks like this:
[WebMethod]
public string GeneratePDFBOL( BillInfo bi)
{
try
{
return bi.BillNumber;
}
catch(Exception e)
{
return e.Message;
}
}
If I take out the BillInfo and add a string value in there, I can post data
but when I try to pass complex data, it does not work.I have searched all
over and I can not find anything on how to do this. It seems to work for Soap
but I want to have unified calls for both SOAP and HTTP-POST.
Can someone point me in the right direction?
Jerel
Comment