Skip to main content
Known Participant
Nov 25, 2015 11:13 PM UTC
Question

cfcomponent wsdlfile method response value getting ignored

I have a SOAP 1.1 webservice that is using a custom wsdfile.

<cfcomponent namespace="http://TestWebservice" wsversion="1" wsdlfile="TestWSDL.wsdl" style="document"> 

In the TestWSDL.wsdl file, the PerformInquiryResponse is supposed to return a complex type of PerformInquiryResult


<xs:element name="PerformInquiryResponse">

<xs:complexType>

<xs:sequence>

<xs:element maxOccurs="1" minOccurs="0" name="PerformInquiryResult" type="tns:InquiryResult"/>

</xs:sequence>

</xs:complexType>

</xs:element>


However, using SOAPUI it returns PerformInquiryReturn instead of PerformInquiryResult


<PerformInquiryResponse xmlns="http://TestWebservice">

         <PerformInquiryReturn>

How do I make sure ColdFusion 10 returns the correct PerformInquiryResult value defined in the TestWSDL.wsdl file instead of PerformInquiryReturn?

This topic is closed to new replies. Start a new post to keep the conversation going.

7 replies

BKBK
Community Expert
Community Expert
Nov 26, 2015 8:49 PM UTC

That was SOAPUI's answer. You should invoke the service using Coldfusion, and tell us what it returns.

Translate
conanbarbAuthor
Known Participant
Nov 30, 2015 6:25 PM UTC

BKBK-

     Thanks for the response.  When I invoke using Coldfusion it incorrectly returns PerformInquiryReturn as well.  Btw, I simplified the example to just return a simple string instead of a complex type.  Any suggestion on returning PerformInquiryResult as defined by the wsdl?

xml document [short version]soapenv:Envelope

XmlText
XmlAttributes
struct
xmlns:soapenvhttp://schemas.xmlsoap.org/soap/envelope/
xmlns:xsdhttp://www.w3.org/2001/XMLSchema
xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance
soapenv:Body
XmlText
PerformInquiryResponse
XmlText
XmlAttributes
struct
xmlnshttp://TestWebservice
PerformInquiryReturn
XmlTextDoe, John

<element name="PerformInquiryResponse">

<complexType>

     <sequence>

     <element name="PerformInquiryResult" type="xsd:string"/>

   </sequence>

</complexType>

</element>

Translate
BKBK
Community Expert
Community Expert
Dec 4, 2015 8:41 PM UTC

Please show us the code that invokes the service. Here is an appetizer from the past

Re: Passing CF variables in soap request

Re: Web Sevices/API

Translate