I'm trying to create an webservice to wich one can upload files. I'm sort of following the wiki trail WSAttachments but instead of generating wsdl from the interfaces I'm writing the wsdl first.
The service deploys nice but when I access http://localhost:8080/ws4ee/services axis throws the following error: | And now... Some Services | AXIS error | Sorry, something seems to have gone wrong... here are the details: | org.apache.axis.InternalException: java.lang.Exception: The OperationDesc for uploadRestoration was not synchronized to a method of com.cadesthetics.pci.ProductionCenterInterfa | Below is my wsdl | <?xml version="1.0" encoding="UTF-8"?> | <wsdl:definitions | name="ProductionCenterInterface" | targetNamespace="http://www.cadesthetics.pci" | xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" | xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | xmlns:tns="http://www.cadesthetics.pci" | xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | <wsdl:message name="uploadRestorationResponse"> | <wsdl:part name="uploadResponse" type="xsd:string"/> | </wsdl:message> | <wsdl:message name="uploadRestorationRequest"> | <wsdl:part name="customerIdentification" type="xsd:string"/> | <wsdl:part name="restorationData" type="xsd:hexBinary"/> | </wsdl:message> | <wsdl:portType name="ProductionCenterInterface"> | <wsdl:operation name="uploadRestoration"> | <wsdl:input message="tns:uploadRestorationRequest"/> | <wsdl:output message="tns:uploadRestorationResponse"/> | </wsdl:operation> | </wsdl:portType> | <wsdl:binding | name="ProductionCenterInterfaceBinding" | type="tns:ProductionCenterInterface"> | <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> | <wsdl:operation name="uploadRestoration"> | <soap:operation | soapAction=""/> | <wsdl:input> | <mime:multipartRelated> | <mime:part> | <soap:body | namespace="http://www.cadesthetics.pci" | parts="customerIdentification" | use="literal"/> | </mime:part> | <mime:part> | <mime:content part="restorationData" type="multipart/*"/> | </mime:part> | </mime:multipartRelated> | </wsdl:input> | <wsdl:output> | <soap:body | namespace="http://www.cadesthetics.pci" | parts="uploadResponse" | use="literal"/> | </wsdl:output> | </wsdl:operation> | </wsdl:binding> | <wsdl:service name="ProductionCenterInterfaceService"> | <wsdl:port | binding="tns:ProductionCenterInterfaceBinding" | name="ProductionCenterInterfacePort"> | <soap:address | location="http://localhost:8000/ccx/ProductionCenterInterfaceService"/> | </wsdl:port> | </wsdl:service> | </wsdl:definitions> | If I remove the mime attachment parts as shown below everyting works fine and its possible to call the service from clients... so its seems to be an mime attachment problem. | <wsdl:operation name="uploadRestoration"> | <soap:operation | soapAction=""/> | <wsdl:input> | <soap:body | namespace="http://www.cadesthetics.pci" | parts="customerIdentification restorationData" | use="literal"/> | </wsdl:input> | <wsdl:output> | <soap:body | namespace="http://www.cadesthetics.pci" | parts="uploadResponse" | use="literal"/> | </wsdl:output> | </wsdl:operation> | The interfaces is generated with | c:>wscompile -import -s src -mapping jaxrpc-mapping.xml -keep config.xml | Development baseline: jboss-4.0.1 jdk-1.5.0_01 jwsdp-1.5 XP servicepack 2 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871132#3871132 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871132 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
