Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-3673

JAXWS Addressing Calculator does not work.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.4
    • jaxws
    • None

    Description

      Brian,

      When i run "org.apache.axis2.jaxws.calculator.client.AddSEIClient 2 3" i get the following stack trace

      log4j:WARN No appenders could be found for logger (org.apache.axis2.metadata.registry.MetadataFactoryRegistry).
      log4j:WARN Please initialize the log4j system properly.
      javax.xml.ws.WebServiceException: An attempt was made to construct the ServiceDelegate object with an service name that is not valid: .
      at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:173)
      at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
      at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:118)
      at org.apache.axis2.jaxws.spi.ServiceDelegate.<init>(ServiceDelegate.java:198)
      at org.apache.axis2.jaxws.spi.Provider.getPort(Provider.java:132)
      at javax.xml.ws.EndpointReference.getPort(EndpointReference.java:39)
      at org.apache.axis2.jaxws.calculator.client.AddSEIClient.main(AddSEIClient.java:31)

      Looks like the EPR that is returned in the getTicket has problems.

      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Body>
      <dlwmin:getTicketResponse xmlns:dlwmin="http://calculator.jaxws.axis2.apache.org">
      <EndpointReference xmlns="http://www.w3.org/2005/08/addressing">
      <Address>http://192.168.2.102:8080/axis2/services/CalculatorService.CalculatorServicePort</Address>
      <ReferenceParameters>
      <TicketId:TicketId xmlns="http://calculator.jaxws.axis2.apache.org" xmlns:TicketId="http://calculator.jaxws.axis2.apache.org">123456789</TicketId:TicketId>
      </ReferenceParameters>
      <Metadata>
      <wsam:ServiceName xmlns="" xmlns:ns3="http://www.w3.org/2005/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" EndpointName="CalculatorServicePort">axis2ns1:CalculatorService</wsam:ServiceName>
      </Metadata>
      </EndpointReference>
      </dlwmin:getTicketResponse>
      </soapenv:Body>
      </soapenv:Envelope>

      Attachments

        Activity

          People

            pradine Brian DePradine
            dims Davanum Srinivas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: