facebook

org.codehaus.xfire.fault.XFireFault: Parameter does not exis

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #285861 Reply

    jjones7947
    Participant

    This a continuation of the prevous post on this problem 3 or 4 below. Posted on the XFire forums also but not much activity there.
    My wsdl:

         
    <?xml version="1.0" encoding="UTF-8"?> 
    <wsdl:definitions targetNamespace="http://com.sra.pipeline.stellent/" 
        xmlns:apachesoap="http://xml.apache.org/xml-soap" 
        xmlns:impl="http://com.sra.pipeline.stellent/" 
        xmlns:intf="http://com.sra.pipeline.stellent/" 
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
        xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
        <wsdl:types> 
            <xsd:schema 
                targetNamespace="http://com.sra.pipeline.stellent/"> 
                <xsd:element name="convertToHtmlRequest"> 
               <xsd:complexType> 
                   <xsd:sequence> 
                       <xsd:element name="name" type="xsd:string" /> 
                       <xsd:element name="document" type="xsd:string" /> 
                   </xsd:sequence> 
                    </xsd:complexType> 
                </xsd:element> 
                <xsd:element name="convertToHtmlResponse"> 
               <xsd:complexType> 
                   <xsd:complexContent> 
                    <xsd:restriction base="xsd:anyType"> 
                        <xsd:sequence> 
                            <xsd:element maxOccurs="unbounded" 
                            name="convertToHtmlReturn" type="xsd:string" /> 
                        </xsd:sequence> 
                    </xsd:restriction> 
                    </xsd:complexContent> 
                </xsd:complexType> 
            </xsd:element> 
            </xsd:schema> 
            </wsdl:types> 
            <wsdl:message name="convertResponse"> 
                <wsdl:part element="impl:convertToHtmlResponse" 
                            name="parameters" /> 
            </wsdl:message> 
            <wsdl:message name="convertRequest"> 
                <wsdl:part element="impl:convertToHtmlRequest" 
                            name="parameters" /> 
            </wsdl:message> 
            <wsdl:portType name="HtmlService"> 
                <wsdl:operation name="convertToHtml"> 
                    <wsdl:input message="impl:convertRequest" name="request" /> 
                    <wsdl:output message="impl:convertResponse" name="response" /> 
                </wsdl:operation> 
            </wsdl:portType> 
            <wsdl:binding name="HtmlServiceSoapBinding" 
                    type="impl:HtmlService"> 
                <wsdlsoap:binding style="document" 
                            transport="http://schemas.xmlsoap.org/soap/http" /> 
                    <wsdl:operation name="convertToHtml"> 
                    <wsdlsoap:operation soapAction="" /> 
                    <wsdl:input name="request"> 
                        <wsdlsoap:body use="literal" /> 
                    </wsdl:input> 
                    <wsdl:output name="response"> 
                        <wsdlsoap:body use="literal" /> 
                    </wsdl:output> 
                    </wsdl:operation> 
            </wsdl:binding> 
            <wsdl:service name="HtmlService"> 
                <wsdl:port binding="impl:HtmlServiceSoapBinding" 
                            name="HtmlService"> 
                <wsdlsoap:address 
                    location="http://localhost:8081/HtmlService/services/HtmlService" /> 
            </wsdl:port> 
        </wsdl:service> 
    </wsdl:definitions> 
    

    XFire generates a couple of bean for the input(two strings) and output(List<String>) which is fine.
    Using it in MyEclipse 6.0.1 and deploying to Tomcat 6 install outside of MyEclipse.
    No errors on install and I can run the generated client which ends after getting a reference to the service with no errors. but when I package up the input parameters in an input bean and call the service method service.convertToHtml(input bean), I get the following error:
    org.codehaus.xfire.fault.XFireFault: Parameter {http://……./}convertToHtmlRequest does not exist!
    That happens to be the element name for the input bean description. The generated class is ConvertToHtmlRequest.

    A second point is that in the process of generating the webservice from the wsdl I select the package com.sra.pipeline.stellent as the target for generation, the classes get generated into stellent.pipeline.sra.com. I just refactor(move) them to the correct package.

    Any help is welcome,
    Jim

    #285905 Reply

    Loyal Water
    Member

    Jim,

    https://www.genuitec.com/forums/topic/aha-its-a-trick/

    I guess you have figured out the solution here. Please try and stick to a single thread instead of starting multiple threads on the same / related issues.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: org.codehaus.xfire.fault.XFireFault: Parameter does not exis

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in