| Neal Walters 2004-08-12, 2:46 am |
| I published a tiny little schema as a webservice just to understand the
concept.
The schema only has three fields (poamt, podate, ponum).
I created a Windows form to test on a button-click event.
Dim x As New localhost.DWEasyPO
x.poamt = 500
x.podate = #3/5/2004#
x.ponum = "DWY-001"
Dim ws As New localhost.DwyerWebServicePO
ws.WebMethodPO1(x) '<--- blows up here
msgbox "okay"
So my understanding is that if it works, it should put an instance of the
message in a receive port, then I could have send ports subscribed to that.
The wizard created a receive location called:
WebService_BizTalkWebServiceDwPO/DWebServicePO with the appropriate SOAP
transport type and web service address.
I'm blowing up in this line of code (from code sample above):
ws.WebMethodPO1(x)
with this exception:
An unhandled exception of type
'System.Web.Services.Protocols.SoapException' occured in
system.web.services.dll. Additional info: ... Internal SOAP Processing
Failure at Microsoft.Biztalk.WebServices.ServerProxy.Invoke(String
functionName, Object[] parameters, ParamInfo[] in ParamInfos, ParamInfo[]
outParamInfos, Int32 bodyPartInex, String bodyType, ArrayList
and the higlighted line of code in theproxy is:
Dim results() as Object = Me.Invoke("WebMethodPO1",
New Object() {DWEasyPO})
Also, when running the publish/wizard, I wasn't sure how to omit the
response from the Request/Response. I still don't get how submitting a
schema can really have a response.
Thanks in advance,
Neal Walters
http://Biztalk-Training.com
|