Reputation: 1092
i'm using jMeter 3.3 and trying to ping my wcfservice.
Address: http://localhost:88/MyService.svc
Endpoint: MyEndpoint
I have created Jmeter http request
Server name:localhost
Port: 88
Method: Post
Path : /MyService.svc
and filled in http header according to tutorials:
Content-Type: text/xml
SOAPAction: http://localhost:88/MyService/MyEndpoint
Problem is that my ednpoint is not being reached. The same data in soapUi or WcfTestClient works well. Did i miss something in JMeter configuration?
Thanks in advance.
Upvotes: 2
Views: 458
Reputation: 168122
Given you are able to run the request via SoapUI you should be able to capture it using JMeter's HTTP(S) Test Script Recorder
Configure SoapUI for recording
Test Plan -> Thread Group -> Recording Controller
. You should be able to successfully replay the request in JMeter.Another option is converting SoapUI XML to JMeter jmx using Taurus tool
Upvotes: 1
Reputation: 479
I think you are missing couple of things
For example, original envelope from WCF Test Client is like this:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IService1/DoWork</Action>
</s:Header>
<s:Body>
<DoWork xmlns="http://tempuri.org/" />
</s:Body>
</s:Envelope>
Body for JMeter should not have Header part:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<DoWork xmlns="http://tempuri.org/" />
</s:Body>
</s:Envelope>
In general Jmeter configuration should be as follows:
That should fix the problem.
P.S. View Results Tree is great for debugging
Upvotes: 2