Error Invoking Web Service

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Error Invoking Web Service

    Hopefully someone has seen this and has an answer. I am trying to invoke a web
    service which takes a string of XML as a parameter. I have attached my call
    below (minus a user name and password needed for access). The XML I am passing
    is below: <ClientId><IdValue
    name='IntegrationConfig'>virtualedgeintdemsg</IdValue></ClientId><PackageId><IdV
    alue name='SolutionId'>122345</IdValue><IdValue
    name='SittingNumber'>5</IdValue></PackageId><ProviderId
    idOwner='ePredix'><IdValue>ePredix</IdValue><IdValue>Stage</IdValue></ProviderId
    ><ComparisonGroupId idOwner='ePredix'><IdValue
    name='RequisitionNumber'>MyReq101</IdValue></ComparisonGroupId><ClientOrderId
    idOwner='ePredix'><IdValue name='OrderNumber'>ve_1_0000001</IdValue><IdValue
    name='AccountId'>Dev</IdValue></ClientOrderId><AssessmentRequester>to</Assessmen
    tRequester><AssessmentSubject><SubjectId idOwner='ePredix'><IdValue
    name='ApplicantId'>dd</IdValue></SubjectId><PersonName><LegalName>Phillip
    Duba</LegalName><GivenName>Phil</GivenName></PersonName></AssessmentSubject><Use
    rArea><ns1:CompletionSteps
    xmlns:ns1='http://ns.epredix.com/2004-12-01'><PassCompletionStep
    xmlns=''><InternetBrowserForward
    timeoutSecs='10'><ForwardUrl>http://www.yahoo.com</ForwardUrl></InternetBrowserF
    orward></PassCompletionStep><FailCompletionStep
    xmlns=''><InternetBrowserForward
    timeoutSecs='10'><ForwardUrl>http://www.amazon.com</ForwardUrl></InternetBrowser
    Forward></FailCompletionStep></ns1:CompletionSteps></UserArea> I receive the
    following error when trying to invoke the web service: Could not generate stub
    objects for web service invocation. Name:
    [url]https://hcmint.epredix.com/integration/soap/AssessmentServiceSoapPort[/url]. WSDL:
    [url]https://hcmint.epredix.com/integration/soap/AssessmentServiceSoapPort[/url].
    org.xml.sax.SAXException: Fatal Error: URI=null Line=2: Illegal character at
    end of document, <. It is recommended that you use a web browser to retrieve
    and examine the requested WSDL document for correctness. If the requested WSDL
    document can't be retrieved or it is dynamically generated, it is likely that
    the target web service has programming errors. I also tried to add it to the
    CF Administrator and it also bombs. I can execute this webservice through the
    url adding the
    method=OrderAssessment&amp;hrx:AssessmentOrder=The _XML_From_Above. Any hints in
    what is going wrong would be greatly appreciated. This is an Assessment request
    using HR-XML syntax. Thanks! Phil

    <cfinvoke
    webservice="https://hcmint.epredix.com/integration/soap/AssessmentServiceSoapPor
    t" method="OrderAssessment" returnvariable="acknowledge">
    <cfinvokeargument name="hrx:AssessmentOrder" value="#OrderRequest#">
    </cfinvoke>

    pduba31 Guest

  2. Similar Questions and Discussions

    1. Error invoking web service:ServiceStubDiscoveryException
      I'm trying to use CFINVOKE to invoke a web service with this code: <cfset serviceURL =...
    2. dynamically invoking web service methods, how?
      Is the only known way to do this is by using...
    3. Invoking Web Service without creating proxy
      I'm trying to invoke a web service programmatically withoutcreating a proxy (e.g. extending SoapHttpClientProtocol). (Theproblem is that at...
    4. Exception when invoking web service from asp .net form
      When creating the instance to invoke a web service method, I always get the exception shown at the bottom. The .dll file changes randomly, although...
    5. 404 error invoking web service
      Hi, I'm having a problem with a web service that I wrote. I first wrote & tested the web service on my local (XP) machine. I used visual studio to...
  3. #2

    Default Re: Error Invoking Web Service

    I got the CFINVOKE to call the web service. I need to call the WSDL file. I
    searched through some other posts and found this out (thanks to the many Babble
    fish examples). Anyway, now my issue is type mismatch. The WSDL file defines
    the parameter as: <wsdl:message name='OrderAssessmentRequest'>
    <wsdl:part name='parameters' element='hrx:AssessmentOrderRequest' />
    </wsdl:message> The 'hrx:AssessmentOrderRequest' is an XML specification. I
    have tried passing a string of XML as well as an XML object and continue to get
    a type mismatch. Any other ideas would be appreciated. Thanks, Phil

    pduba31 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139