facebook

WSDL created has portType appended to service name

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

    Jon
    Member

    Hi,

    I am trying to define the <wsdl:portType> name. When I do in the in services.xml the resulting WSDL has “PortType” appended to the service name (servicePortType).

    How can I define the <wsdl:portType name=”serviceName”> without “PortType” appended to the serviceName?

    Here is my services.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://xfire.codehaus.org/config/1.0">
        <service>
            <name>ServiceName</name>
            <namespace>http://http.test.com/</namespace>
            <serviceClass>
                com.test.ServiceName
            </serviceClass>
            <style>document</style>
            <use>literal</use>
            <scope>application</scope>
        </service>
    </beans>

    Resulting WSLD portType definition:

    
    <wsdl:portType name="ServiceNamePortType">
    <wsdl:operation name="example">
    <wsdl:input name="exampleRequest" message="tns:exampleRequest">
        </wsdl:input>
    <wsdl:output name="exampleResponse" message="tns:exampleResponse">
        </wsdl:output>
    </wsdl:operation>
    </wsdl:portType>
    

    Any help is appreciated, thanks

    Jon

    #286156 Reply

    Brian Fernandes
    Moderator

    Jon,

    I’m not sure if this is possible if you are using a bottom up process. You may need to take the generated WSDL, modify the port type name and work using a top down scenario.

    Please note that XFire is now deprecated and is no longer being developed by the XFire team, if you are starting a new WS project, I would recommend trying JAX-WS instead (avail in ME 6.5GA).

    Please let us know if you need further assistance.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: WSDL created has portType appended to service name

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