[ 
http://jira.codehaus.org/browse/XFIRE-945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dag Framstad updated XFIRE-945:
-------------------------------

    Attachment: build.xml
                Header.xsd
                CAUCJob.wsdl

I have a similar issue.
I have attached wsdl and schema and an ant-build file to recreate the problem, 
just replace property xfire-home with your directory. I have used xfire 1.2.6 
which was recently released.
WsGen generates method signatures like this:

    @WebMethod(operationName = "CAUCJobReport", action = "")
    @WebResult(name = "CAUCJobReportResponse", targetNamespace = 
"http://edb.com/operation/cauc";)
    public CAUCResponseType cAUCJobReport(
        @WebParam(name = "CAUCJobReport", targetNamespace = 
"http://edb.com/operation/cauc";)
        CAUCRequestType CAUCJobReport,
        @WebParam(name = "AutHeader", targetNamespace = 
"http://edb.com/ws/WSCommon_v10";)
        EDBHeaderType AutHeader,
        @WebParam(name = "AutHeader", targetNamespace = 
"http://edb.com/ws/WSCommon_v10";, header = true)
        EDBHeaderType AutHeader2);

I get a "org.codehaus.xfire.fault.XFireFault: Not enough message parts were 
received for the operation." if I try to use this code with the following xml

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:wsc="http://edb.com/ws/WSCommon_v10"; 
xmlns:cauc="http://edb.com/operation/cauc";>
   <soapenv:Header>
      <wsc:AutHeader>
         <wsc:SourceApplication>CAUC_TEST</wsc:SourceApplication>
         <wsc:DestinationApplication>FTS</wsc:DestinationApplication>
         <wsc:Function>ChangeSettlementDate</wsc:Function>
         <wsc:ClientContext>
            <wsc:userid>CAUC</wsc:userid>
            <wsc:credentials>CAUC</wsc:credentials>
            <wsc:channel>NBA</wsc:channel>
            <wsc:orgid>9876</wsc:orgid>
            <wsc:orgunit>9876</wsc:orgunit>
            <wsc:customerid>CAUC</wsc:customerid>
            <wsc:ip>192.168.1.1</wsc:ip>
         </wsc:ClientContext>
      </wsc:AutHeader>
   </soapenv:Header>
   <soapenv:Body>
      <cauc:CAUCStartJob>
         <Command>ChangeSettlementDate</Command>
         <CommandLine>-JobId 1234 -XmlFilePath foo </CommandLine>
      </cauc:CAUCStartJob>
   </soapenv:Body>
</soapenv:Envelope>

if I manually remove the first header (the one without header=true) in the 
interface and implementation it works as expected.


> Why so many Headers?
> --------------------
>
>                 Key: XFIRE-945
>                 URL: http://jira.codehaus.org/browse/XFIRE-945
>             Project: XFire
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 1.2.5
>         Environment: JDK1.5
>            Reporter: hubert zhang
>            Assignee: Dan Diephouse
>         Attachments: build.xml, CAUCJob.wsdl, Header.xsd
>
>
>  I have trouble with generating stub using WSDL.
>        There is the WSDL file(partly):
>              <operation name="getBookPrice">
>                       <soapbind:operation style="rpc" soapAction= " 
> http://www.Monson-Haefel.com/jwsbook/BookQuote/GetBookPrice"/>
>                       <input>
>                               <soapbind:header message="mh:Headers" 
> part="message-id" use="literal" />
>                               <soapbind:body use="literal" 
> namespace="http://www.Monson-Haefel.com/jwsbook/BookQuote"; />
>                       </input>
>                       <output>
>                             <soapbind:header message="mh:Headers" 
> part="message-id" use="literal" />
>                             <soapbind:body use="literal" namespace=" 
> http://www.Monson-Haefel.com/jwsbook/BookQuote"; />
>                      </output>
>            </operation>
>       But the generated function in the interface is very strange,as follow
>             Header  getBookPrice(Header h, GetBookPriceRequest req, Header 
> h2, Holder<GetBookPriceResponse> res, Holder<Header> h3)
>       I just want to know why there are so many headers? What are they used 
> for?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to