views:

735

answers:

2

I'm using SoapUI to load test one of our .net webservices.

I'm new to SoapUI, so I've run through the "getting started", using a publicly available service, and had no problems. But when I try to send a request to my webservice I'm getting a HTTP/1.1 400 Bad Request message.

I generate a default request from the schema, and insert the request XML in the tags, but when I submit it, I get the error above.

If I browse to the service and insert the same XML in the test page, it works perfectly.

Here's the XML I'm submitting:

<AccountInformationRequest xmlns="http://RedlineApplicationServices.com/CognitionAI/AccountInformationRequest.xsd"&gt;
<Authentication>
    <LoginName>WWWWWW</LoginName>
    <Password>KKKKKKK</Password>
</Authentication>
<Directives>
    <Environment>TRIAL</Environment>
    <RequestedAction>AccountSummary</RequestedAction>
    <CustomerReference>77777</CustomerReference>
    <AccountReference>000000111111</AccountReference>
</Directives></AccountInformationRequest>

Any ideas what I'm doing wrong?

A: 

I've seen this problem in Version 2.5.1, what version of SOAP UI are you using?, maybe you could try with 2.5 and see what happens.

Regards

Rulas
@Rulas, I'm using version 3.0.1. I can certainly give 2.5.1 a go.
JustABitOfCode
@Rulas, exactly the same in 2.5.1.
JustABitOfCode
Im using 3.0.1 too, and it works fine... if this is an endpoint you can share maybe I could help you, it must be something in your sintax or the way you configured your endpoint
Rulas
+1  A: 

OK, I've found the problem. The webservice is expecting a string not actually XML, so wrapping it in a <![CDATA[ ... ]]> did the trick.

I guess the test page must do something similar in the background?

JustABitOfCode