WSDL and SOAP

J

johnnyc3po

Hey all,

I recently started working with an ecommerce vendor and was looking at
their WSDL to get an idea of how the data should go over. Now i've
worked with a different vendor in the past who also used WSDL/SOAP for
data exchange and have found some pecularities with this new vendor.

Normally, what i'm used to seeing is is a definition of the method like
so in the WSDL

<wsdl:eek:peration name="ccValidateCard" parameterOrder="merchantName ccn
expdate maskedCcn cardType returnCode">
<wsdl:input message="impl:ccValidateCardRequest"
name="ccValidateCardRequest"/>
<wsdl:eek:utput message="impl:ccValidateCardResponse"
name="ccValidateCardResponse"/>
</wsdl:eek:peration>

Normally I would building up my soap object using

soapobject.ccValidateCard (param, param, etc)


with the new vendor, the operations are defined differently..

<wsdl:eek:peration name="PaymentCC">
<wsdl:input message="tns:paymentCCSoapIn"/>
<wsdl:eek:utput message="tns:paymentCCSoapOut"/>
</wsdl:eek:peration>

It seems they are using complex types, the element PaymentCC is defined
as

<s:element name="PaymentCC">
−
<s:complexType>
−
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="creditCardInfo"
type="s1:CCStruct"/>
</s:sequence>
</s:complexType>
</s:element>

And when i look at CCStruct i see..

<s:complexType name="CCStruct">
−
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="dUserID" type="s:double"/>
<s:element minOccurs="1" maxOccurs="1" name="dBaseAmount"
type="s:double"/>
<s:element minOccurs="0" maxOccurs="1" name="strApplicationID"
type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="dAmount" type="s:double"/>
<s:element minOccurs="0" maxOccurs="1" name="dBaseAmounts"
type="s1:ArrayOfDouble"/>
<s:element minOccurs="1" maxOccurs="1" name="dConvFee"
type="s:double"/>
<s:element minOccurs="0" maxOccurs="1" name="strAcctNum"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strExpDate"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strCVV2" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strAcctHolderName"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strAcctHolderAddress1"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strAcctHolderAddress2"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strCity" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strState"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strCountry"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strEmail"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strHomePhone"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strBusinessPhone"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strTransactionData"
type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="bSignatureFlag"
type="s:boolean"/>
<s:element minOccurs="0" maxOccurs="1" name="strSourceID"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strTrackData"
type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="transactionSource"
type="s1:TransactionSource"/>
<s:element minOccurs="1" maxOccurs="1" name="bDelayCapture"
type="s:boolean"/>
<s:element minOccurs="1" maxOccurs="1" name="iTimeout" type="s:int"/>
<s:element minOccurs="0" maxOccurs="1" name="cde"
type="s1:ArrayOfString"/>
<s:element minOccurs="0" maxOccurs="1" name="strCardType"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strCustomerID"
type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="strAcctHolderAddress"
type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="dFee" type="s:double"/>
<s:element minOccurs="0" maxOccurs="1" name="strZipCode"
type="s:string"/>
</s:sequence>
</s:complexType>


So the issue i'm having is i don't see a method expecting parameters in
the WSDL, how am i supposed to send data with the webservice?



Thanks

-John
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top