Skip to main content
Known Participant
November 25, 2015
Question

cfcomponent wsdlfile method response value getting ignored

  • November 25, 2015
  • 1 reply
  • 579 views

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 has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
November 26, 2015

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

conanbarbAuthor
Known Participant
November 30, 2015

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>

BKBK
Community Expert
Community Expert
December 4, 2015

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