<div> </div> <div> </div> <div>Greetings:</div> <div> </div> <div>If I have asked this question in the wrong forum, please direct me to the correct place.</div> <div> </div> <div>I have a problem consuming a Java webservice in which the web service only receives
strings from the ASP.NET client. It never receives decimals, integers, doubles or DateTimes.</div> <div> </div> <div>The Java WSDL is below, as is some brief code I use as a test.</div> <div> </div> <div>The Java webservice only recevies strings, none of the
number or the DateTime.</div> <div> </div> <div>I can provide a complete project in VS2010 and probably the Java code for the Java web service.</div> <div> </div> <div>Assistance wil lbe greatly appreciated...
</div> <div> </div> <div> </div> <div>
jwsTest.TestWebService testWS = new jwsTest.TestWebService();
jwsTest.bolCommodityDetailWSVO input = new jwsTest.bolCommodityDetailWSVO();
input.weight = 12345;
input.testDouble = 5.5;
input.testInteger = 6;
input.description = "This should show up, but all numbers and date/times are null.";
input.loaddate = DateTime.Now;
jwsTest.bolCommodityDetailWSVO[] arrCommodity = new jwsTest.bolCommodityDetailWSVO [] {input};
decimal result = testWS.testCreateBOL(arrCommodity);
nbkbar7
Member
12 Points
3 Posts
Problem consuming a Java web service
May 10, 2010 04:32 PM|LINK
</div> <div> </div> <div> </div> <div>
jwsTest.TestWebService testWS = new jwsTest.TestWebService();
jwsTest.bolCommodityDetailWSVO input = new jwsTest.bolCommodityDetailWSVO();
input.weight = 12345;
input.testDouble = 5.5;
input.testInteger = 6;
input.description = "This should show up, but all numbers and date/times are null.";
input.loaddate = DateTime.Now;
jwsTest.bolCommodityDetailWSVO[] arrCommodity = new jwsTest.bolCommodityDetailWSVO [] {input};
decimal result = testWS.testCreateBOL(arrCommodity);
</div> <div> </div> <div> </div> <div> </div> <div> </div> <div>- <definitions name="TestWebService" targetNamespace="http://www.overnite.com/ebol/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.overnite.com/ebol/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">- <types>
- <xs:schema targetNamespace="http://www.overnite.com/ebol/" version="1.0" xmlns:tns="http://www.overnite.com/ebol/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:complexType name="testCommodityObject">
- <xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="number" nillable="true" type="tns:bolCommodityDetailWSVO" />
</xs:sequence>
</xs:complexType>
- <xs:complexType name="bolCommodityDetailWSVO">
- <xs:sequence>
<xs:element minOccurs="0" name="bcbolid" type="xs:decimal" />
<xs:element minOccurs="0" name="bccommseq" type="xs:decimal" />
<xs:element minOccurs="0" name="bcnumpkg" type="xs:decimal" />
<xs:element minOccurs="0" name="bcnumpkgasstring" type="xs:string" />
<xs:element minOccurs="0" name="bcpartno" type="xs:decimal" />
<xs:element minOccurs="0" name="bcpkgtype" type="xs:string" />
<xs:element minOccurs="0" name="bcvalue" type="xs:decimal" />
<xs:element minOccurs="0" name="bcvalueasstring" type="xs:string" />
<xs:element minOccurs="0" name="bcweight" type="xs:decimal" />
<xs:element minOccurs="0" name="bcweightasstring" type="xs:string" />
<xs:element minOccurs="0" name="classcode" type="xs:string" />
<xs:element minOccurs="0" name="commodityid" type="xs:decimal" />
<xs:element minOccurs="0" name="description" type="xs:string" />
<xs:element minOccurs="0" name="formattedDescription" type="xs:string" />
<xs:element minOccurs="0" name="hazmat" type="xs:string" />
<xs:element minOccurs="0" name="loaddate" type="xs:dateTime" />
<xs:element minOccurs="0" name="nmfcprime" type="xs:string" />
<xs:element minOccurs="0" name="nmfcsub" type="xs:string" />
<xs:element minOccurs="0" name="pkgtype" type="xs:string" />
<xs:element minOccurs="0" name="testDouble" type="xs:double" />
<xs:element minOccurs="0" name="testInteger" type="xs:int" />
<xs:element minOccurs="0" name="userid" type="xs:string" />
<xs:element minOccurs="0" name="userrank" type="xs:decimal" />
<xs:element minOccurs="0" name="userstatus" type="xs:string" />
<xs:element minOccurs="0" name="value" type="xs:decimal" />
<xs:element minOccurs="0" name="weight" type="xs:decimal" />
</xs:sequence>
</xs:complexType>
</xs:schema>
</types>
- <message name="TestWebService_testCreateBOLResponse">
<part name="DecimalResult" type="xsd:decimal" />
</message>
- <message name="TestWebService_testCreateBOL">
<part name="arg0" type="tns:testCommodityObject" />
</message>
- <portType name="TestWebService">
- <operation name="testCreateBOL" parameterOrder="arg0">
<input message="tns:TestWebService_testCreateBOL" />
<output message="tns:TestWebService_testCreateBOLResponse" />
</operation>
</portType>
- <binding name="TestWebServiceBinding" type="tns:TestWebService">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="testCreateBOL">
<soap:operation soapAction="" />
- <input>
<soap:body namespace="http://www.overnite.com/ebol/" use="literal" />
</input>
- <output>
<soap:body namespace="http://www.overnite.com/ebol/" use="literal" />
</output>
</operation>
</binding>
- <service name="TestWebService">
- <port binding="tns:TestWebServiceBinding" name="TestWebServicePort">
<soap:address location="http://172.16.150.74:8080/jweb/ebolws/TestWebService" />
</port>
</service>
</definitions></div>
webservices xml asp.net 2.0 c#