Need help

D

Dave

I am new to web services. I am tring to send shopping cart data to a web
service. Does anyone have some sample code that points me in the right
direction.

I did add a referance to the service. Here is the wsdl


<?xml version="1.0" encoding="utf-8"?>

<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:s0="urn:uWebShoppingCartIntf"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://tempuri.org/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://tempuri.org/" name="IWebShoppingCartServiceservice"
xmlns="http://schemas.xmlsoap.org/wsdl/">

<types>

<s:schema xmlns="urn:uWebShoppingCartIntf"
targetNamespace="urn:uWebShoppingCartIntf">

<s:complexType name="TWebShoppingCartCustomerData">

<s:sequence>

<s:element name="FirstName" type="s:string" />

<s:element name="MiddleInitial" type="s:string" />

<s:element name="LastName" type="s:string" />

<s:element name="AddressLine1" type="s:string" />

<s:element name="AddressLine2" type="s:string" />

<s:element name="City" type="s:string" />

<s:element name="State" type="s:string" />

<s:element name="CountryID" type="s:string" />

<s:element name="ZipCode" type="s:int" />

<s:element name="HomePhone" type="s:long" />

<s:element name="WorkPhone" type="s:long" />

<s:element name="WorkPhoneEXT" type="s:int" />

<s:element name="Fax" type="s:long" />

<s:element name="EmailAddress" type="s:string" />

<s:element name="ContactMethod" type="s:string" />

</s:sequence>

</s:complexType>

<s:complexType name="TWebShoppingCartDeliveryData">

<s:sequence>

<s:element name="FirstName" type="s:string" />

<s:element name="LastName" type="s:string" />

<s:element name="AddressLine1" type="s:string" />

<s:element name="AddressLine2" type="s:string" />

<s:element name="City" type="s:string" />

<s:element name="State" type="s:string" />

<s:element name="CountryID" type="s:string" />

<s:element name="ZipCode" type="s:int" />

<s:element name="Phone" type="s:long" />

<s:element name="AddressTypeID" type="s:long" />

</s:sequence>

</s:complexType>

<s:complexType name="TWebShoppingCartBillingData">

<s:sequence>

<s:element name="CardTypeID" type="s:int" />

<s:element name="NameOnCard" type="s:string" />

<s:element name="CardNumber" type="s:string" />

<s:element name="CardVerification" type="s:string" />

<s:element name="ExpirationDate" type="s:string" />

</s:sequence>

</s:complexType>

<s:complexType name="TWebShoppingCartOrderData">

<s:sequence>

<s:element name="OrderSourceID" type="s:int" />

<s:element name="OrderSubtotal" type="s:double" />

<s:element name="TaxTotal" type="s:double" />

<s:element name="ShippingTotal" type="s:double" />

<s:element name="OrderTotal" type="s:double" />

<s:element name="Notes" type="s:string" />

</s:sequence>

</s:complexType>

<s:complexType name="TWebShoppingCartPaymentDetail">

<s:sequence>

<s:element name="PaymentTypeID" type="s:int" />

<s:element name="PaymentAmount" type="s:double" />

</s:sequence>

</s:complexType>

<s:complexType name="TWebShoppingCartArrayOfOrderDetails"?

<s:complexContent mixed="false">

<s:restriction base="soapenc:Array">

<s:sequence />

<s:attribute xmlns:n1="http://schemas.xmlsoap.org/wsdl/"
n1:arrayType="s0:TWebShoppingCartOrderDetail[]" ref="soapenc:arrayType" />

</s:restriction>

</s:complexContent>

</s:complexType>

<s:complexType name="TWebShoppingCartOrderDetail">

<s:sequence>

<s:element name="LineSequenceNumber" type="s:int" />

<s:element name="ItemNumber" type="s:int" />

<s:element name="ItemDescription" type="s:string" />

<s:element name="ItemGroup" type="s:string" />

<s:element name="SkuUpcEan" type="s:long" />

<s:element name="Department" type="s:int" />

<s:element name="AcctClass" type="s:int" />

<s:element name="PriceGroup" type="s:string" />

<s:element name="Manufacturer" type="s:int" />

<s:element name="ItemSize" type="s:string" />

<s:element name="ItemColor" type="s:string" />

<s:element name="ItemAttributeDesc" type="s:string" />

<s:element name="RegularPrice" type="s:double" />

<s:element name="SalePrice" type="s:double" />

<s:element name="Quantity" type="s:int" />

<s:element name="CouponCode" type="s:string" />

<s:element name="DiscountPercent" type="s:double" />

<s:element name="DiscountAmount" type="s:double" />

<s:element name="FinalItemPrice" type="s:double" />

<s:element name="FinalLineTotal" type="s:double" />

<s:element name="RegistryNumber" type="s:int" />

<s:element name="GiftWrapID" type="s:int" />

<s:element name="GiftWrapPrice" type="s:double" />

<s:element name="SpecialInstructions" type="s:string" />

<s:element name="NoteLine1" type="s:string" />

<s:element name="NoteLine2" type="s:string" />

<s:element name="NoteLine3" type="s:string" />

<s:element name="NoteLine4" type="s:string" />

</s:sequence>

</s:complexType>

<s:complexType name="TWebShoppingCartResult">

<s:sequence>

<s:element name="ResponseCode" type="s:int" />

<s:element name="OrderNumber" type="s:int" />

</s:sequence>

</s:complexType>

</s:schema>

</types>

<message name="InsertWebShoppingCartInformationService0Request">

<part name="AWebShoppingCartCustomerData"
type="s0:TWebShoppingCartCustomerData" />

<part name="AWebShoppingCartDeliveryData"
type="s0:TWebShoppingCartDeliveryData" />

<part name="AWebShoppingCartBillingData"
type="s0:TWebShoppingCartBillingData" />

<part name="AWebShoppingCartOrderData" type="s0:TWebShoppingCartOrderData"
/>

<part name="AWebShoppingCartPaymentDetail"
type="s0:TWebShoppingCartPaymentDetail" />

<part name="AWebShoppingCartArrayOfOrderDetails"
type="s0:TWebShoppingCartArrayOfOrderDetails" />

</message>

<message name="InsertWebShoppingCartInformationService0Response">

<part name="return" type="s0:TWebShoppingCartResult" />

</message>

<message name="PingWebShoppingCartService1Request">

<part name="AInteger" type="s:int" />

</message>

<message name="PingWebShoppingCartService1Response">

<part name="return" type="s:int" />

</message>

<portType name="IWebShoppingCartService">

<operation name="InsertWebShoppingCartInformationService">

<input message="tns:InsertWebShoppingCartInformationService0Request" />

<output message="tns:InsertWebShoppingCartInformationService0Response" />

</operation>

<operation name="PingWebShoppingCartService">

<input message="tns:pingWebShoppingCartService1Request" />

<output message="tns:pingWebShoppingCartService1Response" />

</operation>

</portType>

<binding name="IWebShoppingCartServicebinding"
type="tns:IWebShoppingCartService">

<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"
/>

<operation name="InsertWebShoppingCartInformationService">

<soap:eek:peration
soapAction="urn:uWebShoppingCartIntf-IWebShoppingCartService#InsertWebShoppi
ngCartInformationService" style="rpc" />

<input>

<soap:body use="encoded"
namespace="urn:uWebShoppingCartIntf-IWebShoppingCartService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />

</input>

<output>

<soap:body use="encoded"
namespace="urn:uWebShoppingCartIntf-IWebShoppingCartService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />

</output>

</operation>

<operation name="PingWebShoppingCartService">

<soap:eek:peration
soapAction="urn:uWebShoppingCartIntf-IWebShoppingCartService#PingWebShopping
CartService" style="rpc" />

<input>

<soap:body use="encoded"
namespace="urn:uWebShoppingCartIntf-IWebShoppingCartService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />

</input>

<output>

<soap:body use="encoded"
namespace="urn:uWebShoppingCartIntf-IWebShoppingCartService"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />

</output>

</operation>

</binding>

<service name="IWebShoppingCartServiceservice">

<port name="IWebShoppingCartServicePort"
binding="tns:IWebShoppingCartServicebinding">

<soap:address
location="http://www.xxxxx.com/WebShoppingCart/WebShoppingCart_CGI.exe/soap/
IWebShoppingCartService" />

</port>

</service>

</definitions>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top