2008 Jun 27 1:14 PM
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
2008 Jun 27 1:42 PM
2008 Jun 27 1:56 PM
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.
2008 Jun 27 3:44 PM
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.