Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Message: Element type "http:" must be followed by either attribute specifications, ">" or "/>".

925716Jul 3 2013

Hi All,

i'm newbie to Java WebServices. I had created a sample helloworld service and deployed service on tomcat server.

When i'm calling from the client application i'm getting the following error

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client

faultSubcode:

faultString: Couldn't create SOAP message due to exception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,235]

Message: Element type "http:" must be followed by either attribute specifications, ">" or "/>".

faultActor:

faultNode:

faultDetail:

    {http://xml.apache.org/axis/}stackTrace:Couldn't create SOAP message due to exception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,235]

Message: Element type "http:" must be followed by either attribute specifications, ">" or "/>".

    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)


Couldn't create SOAP message due to exception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,235]

Message: Element type "http:" must be followed by either attribute specifications, ">" or "/>".

    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)



Here is my WSDL file


<?xml version="1.0" encoding="UTF-8"?>

<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3-hudson-390-. -->

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://service.com/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="HelloWorldImplService" targetNamespace="http://service.com/">

  <types/>

  <message name="getHelloWorldAsString">

    <part name="arg0" type="xsd:string"/>

  </message>

  <message name="getHelloWorldAsStringResponse">

    <part name="return" type="xsd:string"/>

  </message>

  <portType name="HelloWorld">

    <operation name="getHelloWorldAsString">

      <input message="tns:getHelloWorldAsString"/>

      <output message="tns:getHelloWorldAsStringResponse"/>

    </operation>

  </portType>

  <binding name="HelloWorldImplPortBinding" type="tns:HelloWorld">

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

    <operation name="getHelloWorldAsString">

      <soap:operation soapAction=""/>

      <input>

        <soap:body namespace="http://service.com/" use="literal"/>

      </input>

      <output>

        <soap:body namespace="http://service.com/" use="literal"/>

      </output>

    </operation>

  </binding>

  <service name="HelloWorldImplService">

    <port binding="tns:HelloWorldImplPortBinding" name="HelloWorldImplPort">

      <soap:address location="http://localhost:8088/SimpleSOA/HelloWorldImplPort"/>

    </port>

  </service>

</definitions>

Could any one help me here...

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2013
Added on Jul 3 2013
0 comments
2,418 views