Forum Discussion

JHoreczky's avatar
JHoreczky
Contributor
15 years ago

Error on soap request when using data source

Hello support team,

Below is a schema snippet of a data definition used in a web services interface

<xs:element name="myId" nillable="false" type="xs:integer">
<xs:annotation>
<xs:documentation>
id assigned to application
</xs:documentation>
</xs:annotation>
</xs:element>

When I try to populate this data element from a 'dataSource' defined in soapUI Pro, I get an error returned from the web services:

<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>error: decimal: Invalid decimal value: expected at least one digit</faultstring>
<detail>
<java:string xmlns:java="java.io">com.bea.xml.XmlRuntimeException: error: decimal: Invalid decimal value: expected at least one digit</java:string>
</detail>
</env:Fault>

In the above case the data in the data source was specified as the following integer: 2002
Note when this data is directly input into the request then the request succeeds and a response is received back from the service without any errors.

The web services is hosted on Weblogic server 10, and soapUI Pro 3.6.1, Build dist-118-2010-10-18, Build Date 2010/10/18 15:21 was used to send the request to the service.

Please advise how to resolve this problem.

Thanks,
Joseph H.

3 Replies

  • Hi!

    hmm.. can you check the raw request log after the request has been sent with the DataSource to see what actually went over the wire? Alternatively double-click the corresponding request entry in the testcase run log to see the sent message!?

    regards!

    /Ole
    eviware.com
  • Hi again,

    After checking the soapui's http log it's revealed that the this request data element was not populated from the soapui datasource, and basically this field is empty in the request:

    <v1:paymentRuleId/>

    This is strange because I used the soapui's Get Data -> Step 1: [DataSource] -> Property [paymentRuleId] click throughs in order to populate the data property reference in the soap request form, so mispelling can be safely excluded as a root cause. What else could be the problem? The datasource is defined as datasource grid in soapui pro and the data row is properly filled in.

    Thanks for your prompt response!

    Joseph H.
  • Hi!

    hmm.. can you attach your project file so we can have a look at this?

    regards!

    /Ole
    eviware.com