cfinvoke on wsdl, saxexception

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

  1. #1

    Default cfinvoke on wsdl, saxexception

    here is the WSDL : <?xml version='1.0' encoding='UTF-8'?> <wsdl:definitions
    name='RmOutXMLInvoice_Williams_Control' targetNamespace='http://win-wmdev/'
    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns:http='http://schemas.xmlsoap.org/wsdl/http/'
    xmlns:tns='http://win-wmdev/'
    xmlns:mime='http://schemas.xmlsoap.org/wsdl/mime/'
    xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'> <wsdl:types>
    <xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    targetNamespace='http://localhost/RmOutXMLInvoice_Williams/Control/processWillia
    msInvoices'
    xmlns:tns='http://localhost/RmOutXMLInvoice_Williams/Control/processWilliamsInvo
    ices'> <xsd:complexType name='__processWilliamsInvoicesInput'>
    <xsd:sequence> <xsd:element name='store' nillable='true'
    type='xsd:string' minOccurs='0'/> <xsd:element name='ticket'
    nillable='true' type='xsd:string' minOccurs='0'/> <xsd:element
    name='sub' nillable='true' type='xsd:string' minOccurs='0'/>
    <xsd:element name='resendFlag' nillable='true' type='xsd:string'
    minOccurs='0'/> </xsd:sequence> </xsd:complexType>
    </xsd:schema> </wsdl:types> <wsdl:message
    name='processWilliamsInvoicesInput'> <wsdl:part name='store'
    type='xsd:string'/> <wsdl:part name='ticket' type='xsd:string'/> <wsdl:part
    name='sub' type='xsd:string'/> <wsdl:part name='resendFlag'
    type='xsd:string'/> </wsdl:message> <wsdl:message
    name='processWilliamsInvoicesOutput'/> <wsdl:portType
    name='RmOutXMLInvoice_Williams_ControlPortType'> <wsdl:operation
    name='processWilliamsInvoices'> <wsdl:input
    message='tns:processWilliamsInvoicesInput'/> <wsdl:output
    message='tns:processWilliamsInvoicesOutput'/> </wsdl:operation>
    </wsdl:portType> <wsdl:binding name='RmOutXMLInvoice_Williams_ControlBinding'
    type='tns:RmOutXMLInvoice_Williams_ControlPortType '> <soap:binding
    style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
    <wsdl:operation name='processWilliamsInvoices'> <soap:operation
    soapAction=''/> <wsdl:input> <soap:body
    encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'
    namespace='http://win-wmdev/RmOutXMLInvoice_Williams.Control' use='encoded'/>
    </wsdl:input> <wsdl:output> <soap:body
    encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'
    namespace='http://win-wmdev/RmOutXMLInvoice_Williams.Control' use='encoded'/>
    </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service
    name='RmOutXMLInvoice_Williams_ControlService'> <wsdl:port
    name='RmOutXMLInvoice_Williams_ControlPort0'
    binding='tns:RmOutXMLInvoice_Williams_ControlBindi ng'> <soap:address
    location='http://win-wmdev:5555/soap/rpc'/> </wsdl:port> </wsdl:service>
    </wsdl:definitions> here is the cfinvoke tag:
    <cfinvoke webservice='http://rh-job-box/processWilliamsInvoices.wsdl'
    method='processWilliamsInvoices' returnVariable='resendReturn'>
    <cfinvokeargument name='store' value='#store#'/> <cfinvokeargument
    name='ticket' value='#ticket#'/> <cfinvokeargument name='sub' value='#sub#'/>
    <cfinvokeargument name='resendFlag' value='y'> </cfinvoke> here is the error:
    Could not perform web service invocation 'processWilliamsInvoices'
    because AxisFault faultCode:
    {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:
    faultString: org.xml.sax.SAXException: Error: URI=null Line=3: Illegal
    xml:lang value ''. faultActor: faultNode: faultDetail:
    {http://xml.apache.org/axis/}stackTrace: org.xml.sax.SAXException: Error:
    URI=null Line=3: Illegal xml:lang value ''. at
    org.apache.axis.utils.XMLUtils$ParserErrorHandler. error(XMLUtils.java:619) at
    org.apache.crimson.parser.Parser2.error(Parser2.ja va:3165) at
    org.apache.crimson.parser.Parser2.maybeElement(Par ser2.java:1430) at
    org.apache.crimson.parser.Parser2.content(Parser2. java:1779) at
    org.apache.crimson.parser.Parser2.maybeElement(Par ser2.java:1507) at
    org.apache.crimson.parser.Parser2.parseInternal(Pa rser2.java:500) at
    org.apache.crimson.parser.Parser2.parse(Parser2.ja va:305) at
    org.apache.crimson.parser.XMLReaderImpl.parse(XMLR eaderImpl.java:442) at
    org.apache.crimson.jaxp.DocumentBuilderImpl.parse( DocumentBuilderImpl.java:18...
    is one of those arguments being passed as null? right above the cfinvoke
    tag, I output all 3 of those variables and they all have values - they're NOT
    null. is there some way about how I'm using the cfinvokeargument tag that's
    wrong? how could I do this w/o cfinvokeargument...including the arguments in
    the cfinvoke tag....? thanks.

    lukecrouch Guest

  2. Similar Questions and Discussions

    1. Unable to load WSDL. If currently online, please verifythe URI and/or format of the WSDL
      Hello, I'm using Flex 2.0 Beta 3 with Flash Player 9. http://mywsdlurl)"] at">http://mywsdlurl)"</a> mx.rpc.soap::WSDLParser/::dispatchFault()...
    2. WSDL error on Flex app running on JBoss using WSDL to Weblogic
      Hello, Not sure if my last post made it so sorry if this ends up being a duplicate post. I have a Flex 1.5 app running on JBoss 4.0.2 which uses...
    3. the saxexception on cfinvoke wsdl
      this seems to be a pretty common error and Macromedia has yet to give a consistent answer... I'm trying to use cfinvoke to use a web service, and...
    4. wsdl.exe fails with WebMethods generated wsdl file
      Using WebMethods, Inc Developer tool to create a wsdl for a flow service. Try to use .NET wsdl utility to create a C# proxy, but get the errors...
    5. WSDL file produces useless class when imported with WSDL.exe
      I am having a problem with a WSDL file supplied by a client. When WSDL.exe is used, the WSDL file (shown later) produces the following output class....
  3. #2

    Default Re: cfinvoke on wsdl, saxexception

    They key to this is the error
    org.xml.sax.SAXException: Error: URI=null Line=3: Illegal xml:lang value
    ''.

    And this is a service side exception ("Server.userException") and it looks
    like the service is generating the fault. So I believe that the request is
    getting to the server OK, it is just that the server is throwing an error on
    some XML, around line 3.

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

  4. #3

    Default Re: cfinvoke on wsdl, saxexception

    you're probably having trouble aressing that complex varable in the webservice.
    CF really has a bad time with those. The problem is that a CF structure and a
    CF array arent the correct datatypes to pass to the webservice. In some cases
    you can massage them to get them to the right underlying java datatypes. But in
    most cases we've had to wrte Java wrappers to teh webservice and then interface
    with our local java. Its not a very nice solution especially given the Axis
    version weirdness that comes w/ CFMX 7.

    altimage Guest

  5. #4

    Default Re: cfinvoke on wsdl, saxexception

    altimage,

    Since the original poster is getting an XML parser error, he is not having
    complex type problems with his service.

    In any case, you can almost always create the correct CFML structure or
    array which will get converted in to the right thing for a web service. For
    some great info on this, check out this article:


    [url]http://hcc.musc.edu/research/shared_resources/xml_complex_types_to_cf_structure_notes.cfm[/url]

    I am not sure what you mean by "version weirdness" in CFMX 7. In order to
    get document/literal and WS-I support (not to mention JAX-RPC 1.1) we needed
    to update the version of Axis that we ship to Axis 1.2 (we actually ship
    RC2+).

    We expect to include the final 1.2 in whatever updater we ship in the future
    for CFMX 7.

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

  6. #5

    Default Re: cfinvoke on wsdl, saxexception

    Hi Tom, Thanks for that link. I saw that article posted somewhere
    yesterday...very helpful. Our experience has been that its very difficult
    working with complex webservices. Im sure that linked article wil help get over
    some of it a bt easier but in our case, we had to write a java wrapper to the
    webservice and invoke that instead. The problem with the axis stuff really
    hit us with version 7. There are 2 versions of the axis jars that ship with
    cfmx 7 enterprise. We were moving over our webservice wrapper jar and it just
    didnt work. It appeared that the jar was referencing a different version of
    axis than what we were expecting and we had a really bad time trying to get it
    to load the right one. It was like it would just ignore the load order we were
    setting in our classpath and the jar would always fail even though the same
    thing worked perfectly in 6.1. BTW Tom, if you have an extra couple minutes,
    could you help me with this one.
    [url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=7&amp;th[/url]
    readid=982803 thanks. altImage

    altimage Guest

  7. #6

    Default Re: cfinvoke on wsdl, saxexception

    how can I see the SOAP request it's sending? I'd like to see line 3 of the XML if I can....
    lukecrouch 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