TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft BizTalk Server

BizUnit - test output of the web service request/response

Microsoft BizTalk Server


Reply
 
LinkBack Thread Tools Display Modes
Old 23-10-2007, 09:37 PM   #1
kenghiup@gmail.com
Guest
 
Posts: n/a
BizUnit - test output of the web service request/response

Does anyone know how to test the output of the web service request/
response?
For example, I have a BizTalk orchestration that receive an input file
and call a web service. The web service will return success or
failure.
For my unit test, I need to test the output of the request to the web
service and also the output the response back from the web service.

How can test it using BizUnit?

Please advise. Thanks in advance.

Kenny

  Reply With Quote
Old 23-10-2007, 09:37 PM   #2
Dick Dijkstra
Guest
 
Posts: n/a
Re: BizUnit - test output of the web service request/response

Hi,

If I understand your situation correctly, you can use the
HttpRequestResponseStep:

<TestStep assemblyPath=""
typeName="Microsoft.Services.BizTalkApplicationFra mework.BizUnit.HttpRequestResponseStep">
<SourcePath>.\TestData\InDoc1.xml</SourcePath>
<DestinationUrl>http://localhost/TestFrameworkDemo/
BTSHTTPReceive.dll?ReqResp</DestinationUrl>
<RequestTimeout>10000</RequestTimeout>

<ValidationStep assemblyPath=""
typeName="Microsoft.Services.BizTalkApplicationFra mework.BizUnit.XmlValidationStep">
<XmlSchemaPath>.\TestData\PurchaseOrder.xsd</XmlSchemaPath>
<XmlSchemaNameSpace>http://SendMail.PurchaseOrder</
XmlSchemaNameSpace>
<XPathList>
<XPathValidation query="/*[local-name()='PurchaseOrder'
and namespace-uri()='http://SendMail.PurchaseOrder']/*[local-
name()='PONumber' and namespace- uri()='']">PONumber_0</
XPathValidation>
</XPathList>
</ValidationStep>
</TestStep>

HTH,

**** Dijkstra

On Oct 9, 3:07 am, kengh...@gmail.com wrote:
> Does anyone know how to test the output of the web service request/
> response?
> For example, I have a BizTalk orchestration that receive an input file
> and call a web service. The web service will return success or
> failure.
> For my unit test, I need to test the output of the request to the web
> service and also the output the response back from the web service.
>
> How can test it using BizUnit?
>
> Please advise. Thanks in advance.
>
> Kenny



  Reply With Quote
Reply

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 03:43 PM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional