Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with webservice

Former Member
0 Likes
643

Hello there.

I have a client that asked me to make a dll so that he can use more easily a web service from SAP. They gave me two wsdl's that I imported to a new vb.net 2005 project. All the methods, functions, were automatically generated.

I use the objects and their properties that were created without changing them.

I can't seem to make it work. I can build the solution without any error. I used a xml example, and I force all the data through to the object and still I can't make it work.It seems that the problem is being caused by a property that is data type decimal.

the people from SAP, when debugging the values I send, only this property is incorrect. I have forced it equal to 7,7 and still it says that it's incorrect, giving it a zero value.

Do you know if I have to use the SAP Connector class, or am I missing something else?

Is it necessary to do something to initialize the service?

Thanks in advance

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
617

Please try 7.7 instead of 7,7

Read only

0 Likes
617

I don't think that passing 7.7 instead of 7,7 is understanding of a real decimal.

Still, I tried it and it didn't work.

Thanks.

Read only

Former Member
0 Likes
617

Ok.

Can you please tell us what is in the WSDL ?

Please search for following parts: something like:

<xsd:simpleType name="decimal23.4">

<xsd:restriction base="xsd:decimal">

<xsd:totalDigits value="23" />

<xsd:fractionDigits value="4" />

</xsd:restriction>

</xsd:simpleType>

and

<wsdl:part name="Amount" type="n0:decimal23.4" />

thx.