users@glassfish.java.net

Web Service Deployment problem

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Jun 2008 10:56:28 PDT

Hi,
I am deploying my BookQuote web service on glassfish application server and getting following error while deployment.


quote:
--------------------------------------------------------------------------------
 error: incorrect port name: "{http://books.com}BookQuotePortType"
Jun 9, 2008 11:02:56 PM com.sun.enterprise.deployment.backend.ModuleDeployer runEJBC
WARNING: DPL5035:Error while running ejbc
com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- jaxrpc compilation exception

--------------------------------------------------------------------------------



Following is the piece of code from wsdl

code:
--------------------------------------------------------------------------------

    
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://books.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="BookApplication" targetNamespace="http://books.com">
<wsdl:message name="bookNameRequest">
        <wsdl:part name="in0" type="xsd:string"></wsdl:part>
</wsdl:message>
<wsdl:message name="bookNameResponse">
        <wsdl:part name="out" type="xsd:string"></wsdl:part>
</wsdl:message>
    <wsdl:message name="getBookName_faultMsg">
            <wsdl:part name="fault" type="xsd:string"></wsdl:part>
    </wsdl:message>
    <wsdl:portType name="BookQuotePortType">
    <wsdl:operation name="getBookName">
      <wsdl:input name="bookNameRequest" message="tns:bookNameRequest"/>
      <wsdl:output name="bookNameResponse" message="tns:bookNameResponse"/>
            <wsdl:fault name="fault" message="tns:getBookName_faultMsg"></wsdl:fault>
        </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="BookApplicationSOAP" type="tns:BookQuotePortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getBookName">
      <soap:operation soapAction=" "/>
      <wsdl:input name="bookNameRequest">
        <soap:body use="literal" namespace="http://books.com" />
      </wsdl:input>
      <wsdl:output name="bookNameResponse" >
        <soap:body use="literal" namespace="http://books.com" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="BookQuoteServiceName">
    <wsdl:port binding="tns:BookApplicationSOAP" name="BookApplicationSOAPOne">
      <soap:address location="http://localhost:8080/BookApplication/services/BookQuote"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

I request some help on this.

Thanks,
Lave
[Message sent by forum member 'lavkul' (lavkul)]

http://forums.java.net/jive/thread.jspa?messageID=279222