BizTalk Server General - Need help with WSE

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > June 2005 > Need help with WSE





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Need help with WSE
Dan Tharp

2005-06-01, 5:52 pm

I need to have BizTalk submit a document to a web service.
I've tried orchestration and had no luck.
I've tried using messaging-only with WSE (Web Services Enhancements) and had
no luck.
I just can't seem to get BizTalk to submit documents to a web service, and
this has been stumping me for weeks.

Can someone please help me out?

I've constructed the most "bare-bones" minimal-as-possible flow I could
think of to eliminate all other outside factors and documented,
step-by-step, what I'm doing and then included the error messages.


In Visual Studio with NO project open, JUST using BizTalk Explorer, I did
the following:

1) Created a One-Way receive port "rptWSETest":
General, Authentication: Not required
Inbound Maps: None
2) Below that, created a receive location "rlcWSETest":
Transport Type: FILE
Address (URI):
\\ecommerce1\ecommerce\!DanTest\TradingP
artner2\Inbound\PartPricing
File mask: *.xml
Receive handler: BizTalkServerApplication
ReceivePipeline: Microsoft.BizTalk.DefaultPipelines.PassThruReceive
3) Enabled "rlcWSETest" receive location
4) Created send port "sptWSETest":
Static Solicit-Response Port
General, Transport Type: WSE
URL:
http://localhost/wsCDOWarehousePric...cingImport.asmx[vbcol=seagreen]
ProcessMessage

Test
The test form is only available for methods with primitive types or arrays
of primitive types as parameters.
SOAP
The following is a sample SOAP request and response. The placeholders shown
need to be replaced with actual values.

POST /wsCDOWarehousePricingImport/wsCDOWarehousePricingImport.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction:
"http://tempuri.org/wsCDOWarehousePricingImport/wsCDOWarehousePricingImport/ProcessMessage"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ProcessMessage
xmlns="http://tempuri.org/wsCDOWarehousePricingImport/wsCDOWarehousePricingImport">
<astrDocument>xml</astrDocument>
</ProcessMessage>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ProcessMessageResponse
xmlns="http://tempuri.org/wsCDOWarehousePricingImport/wsCDOWarehousePricingImport">
<ProcessMessageResult>int</ProcessMessageResult>
</ProcessMessageResponse>
</soap:Body>
</soap:Envelope>

5) Entered
"http://localhost/wsCDOWarehousePricingImport/wsCDOWarehousePricingImport.asmx?wsdl"
into the URL box and clicked GO which caused the wsCDOWarehousePricingImport
Web Service to be available in the drop down (and I selected it).
6) I left authentication type as anonymous and confirmed in IIS that
anonymous user access is allowed.
7) Set the send pipeline to
Microsoft.BizTalk.DefaultPipelines.PassThruReceive
8) Set the receive pipeline to
Microsoft.BizTalk.DefaultPipelines.PassThruReceive
9) Set the filter to "BTS.ReceivePortName == rptWSETest"
(Everything else left as default)
10) Started sprWSETest send port
11) Dropped the following well-formed XML document (WSETest.XML) into
\\ecommerce1\ecommerce\!DanTest\TradingP
artner2\Inbound\PartPricing
<root>
<record><ID>1</ID><field1>11111</field1><field2>22222</field2><field3>33333</field3></record> <record><ID>2</ID><field1>one</field1><field2>two</field2><field3>three</field3></record> <record><ID>3</ID><field1>111</field1><field2>222</field2><field3>333<
/field3></record> </root>12) Document was picked up and the following event log messages showed up:Event Type: ErrorEvent Source: WSE AdapterEvent Category: NoneEvent ID: 0Date: 6/1/2005Time: 12:32:10 PMUser: N/AComputer: MORTW090Description:Failed to
transmit message. Exception : System.ArgumentNullException: Valuecannot be null.Parameter name: methodname atMicrosoft.Web.Services2.Messaging.SoapClient.SendRequestResponse(Stringmethodname, SoapEnvelope envelope) atMicrosoft.BizTalk.Adapter.WseTrans
mitter.WseTransmitter.SendRequest(RequestObject requestObject) atMicrosoft.BizTalk.Adapter.WseTransmitter.WseTransmitter.ProcessMessage(RequestObject request)For more information, see Help and Support Center athttp://go.microsoft.com/fwlink/events.asp.E
vent Type: WarningEvent Source: BizTalk Server 2004Event Category: BizTalk Server 2004Event ID: 5743Date: 6/1/2005Time: 12:32:10 PMUser: N/AComputer: MORTW090Description:The adapter failed to transmit message going to send port"wse://http://localhost/w
sCDOWarehousePricingImport/wsCDOWarehousePricingImport.asmx". It will be retransmitted after the retry interval specified forthis Send Port. Details:"Value cannot be null.Parameter name: methodname".For more information, see Help and Support Center athttp
://go.microsoft.com/fwlink/events.asp.The message shows up in HAT with a status of "Delivered, not consumed" and aservice status of "Dehydrated".When I saved the message from HAT, it created"{DE36AA15-1656-4C29-8C4B-C528EF8B5066}_{46EA7D7A-DFAF-48B3-8462-
EE3B2C4D98DE}_body.out", which contained the original document and"{DE36AA15-1656-4C29-8C4B-C528EF8B5066}_context.xml" which showed this:<MessageInfo><ContextInfo PropertiesCount="14"><PropertyName="AdapterReceiveCompleteTime"Namespace="http://schemas.mic
rosoft.com/BizTalk/2003/messagetracking-properties" Value="6/1/2005 5:32:09 PM"/><Property Name="ReceivedFileName"Namespace="http://schemas.microsoft.com/BizTalk/2003/file-properties"Value=" \\ecommerce1\ecommerce\!DanTest\TradingP
artner2\Inbound\PartPrici
ng\WSETest.xml"/><Property Name="InboundTransportLocation"Namespace="http://schemas.microsoft.com/BizTalk/2003/system-properties"Value=" \\ecommerce1\ecommerce\!DanTest\TradingP
artner2\Inbound\PartPricing\*.xml"/><Property Name="InterchangeID"Namespace="ht
tp://schemas.microsoft.com/BizTalk/2003/system-properties"Value="{DE36AA15-1656-4C29-8C4B-C528EF8B5066}"/><PropertyName="ReceivePortID"Namespace="http://schemas.microsoft.com/BizTalk/2003/system-properties"Value="{989E0AFB-9AAE-4F38-A8BC-2AF2723A48CD}"/><
PropertyName="ReceivePortName"Namespace="http://schemas.microsoft.com/BizTalk/2003/system-properties"Value="rptWSETest"/><Property Name="WasSolicitResponse"Namespace="http://schemas.microsoft.com/BizTalk/2003/system-properties"Value="0"/><Property Name="A
uthenticationRequiredOnReceivePort"Namespace="http://schemas.microsoft.com/BizTalk/2003/system-properties"Value="0"/><Property Name="InboundTransportType"Namespace="http://schemas.microsoft.com/BizTalk/2003/system-properties"Value="FILE"/><Property Name="
LRPMsgBodyTracking"Namespace="http://schemas.microsoft.com/BizTalk/2003/system-properties"Value="0"/><Property Name="MessageExchangePattern"Namespace="http://schemas.microsoft.com/BizTalk/2003/system-properties"Value="1"/><Property Name="PortName"Namespac
e="http://schemas.microsoft.com/BizTalk/2003/messagetracking-properties" Value="rptWSETest"/><Property Name="ReceivePipelineID"Namespace="http://schemas.microsoft.com/BizTalk/2003/system-properties"Value="{6A52A62E-3AFD-4410-B4AD-B3AE74F49FE8}"/><ArrayPro
pertyName="PartNames"Namespace="http://schemas.microsoft.com/BizTalk/2003/messageagent-properties"><ArrayElement1 Value="body"/></ArrayProperty></ContextInfo><PartInfoPartsCount="1"><MessagePart ID="{46EA7D7A-DFAF-48B3-8462-EE3B2C4D98DE}"Name="body" FileN
ame="C:\Documents and Settings\dtharp\Desktop\NewFolder\{DE36AA15-1656-4C29-8C4B-C528EF8B5066}_{46EA7D7A-DFAF-48B3-8462-EE3B2C4D98DE}_body.out" Charset="" ContentType=""/></PartInfo></MessageInfo>...so I know the document's getting to the point where it's
supposed to besubmitted to the web service, but I keep getting this "Value cannot be null"error.>>> BTW: This is the exact SAME error I get if I try to use WSE in anorchestration. <<<I'm current on Web Services Enhancements (WSE) 2.0 SP3 for Microsoft .N
EThttp://www.microsoft.com/downloads/details.aspx?FamilyId=1BA1F631-C3E7-420A-BC1E-EF18BAB66122&displaylang=enand I have the current BizTalk Adapter for Web Services Enhancement (WSE)2.0 installedhttp://www.microsoft.com/downloads/details.aspx?familyid=ba
643360-e9dc-4fc5-8d60-8e6c5eca7861&displaylang=enAnyone got any ideas why I get this same "Value cannot be null" error, bothin this messaging-only scenario and in orchestration?Thanks!Dan

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com