This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Problem using Apache CXF WebService client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem using Apache CXF WebService client" Watch "Problem using Apache CXF WebService client" New topic
Author

Problem using Apache CXF WebService client

Willian Yassunaka
Greenhorn

Joined: Dec 29, 2008
Posts: 2
Hi Folks!

I'm trying to access an external webservice, through a client generated by Apache CXF. I dont know what is happening, but I'm facing the error bellow:

[27/04/12 18:42:26:414 BRT] 00000010 SystemErr R [Fatal Error] :103:17: O tipo de elemento "p" deve ser terminado pela marcação final correspondente "

".
[27/04/12 18:42:26:424 BRT] 00000010 SystemErr R [Fatal Error] Service1.asmx:103:17: O tipo de elemento "p" deve ser terminado pela marcação final correspondente "

".
[27/04/12 18:42:26:425 BRT] 00000010 SystemErr R javax.xml.ws.WebServiceException: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://localhost/tiss2/Service1.asmx'.: org.xml.sax.SAXParseException: O tipo de elemento "p" deve ser terminado pela marcação final correspondente "

".
[27/04/12 18:42:26:427 BRT] 00000010 SystemErr R at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
[27/04/12 18:42:26:427 BRT] 00000010 SystemErr R at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
[27/04/12 18:42:26:427 BRT] 00000010 SystemErr R at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:12
[27/04/12 18:42:26:427 BRT] 00000010 SystemErr R at org.apache.axis2.jaxws.util.WSDL4JWrapper.loadDefinition(WSDL4JWrapper.java:754)
[27/04/12 18:42:26:428 BRT] 00000010 SystemErr R at org.apache.axis2.jaxws.util.WSDL4JWrapper.getDefinition(WSDL4JWrapper.java:670)
[27/04/12 18:42:26:428 BRT] 00000010 SystemErr R at org.apache.axis2.jaxws.util.WSDL4JWrapper.commonPartsURLConstructor(WSDL4JWrapper.java:224)
[27/04/12 18:42:26:428 BRT] 00000010 SystemErr R at org.apache.axis2.jaxws.util.WSDL4JWrapper.<init>(WSDL4JWrapper.java:156)

I'm from Brazil, and the sentence "O tipo de elemento "p" deve ser terminado pela marcação final correspondente" can be translated to "the type of element "p" must be completed by corresponding mark", something like that.

I appreciate some help

Best regards

ps: sorry my english.


Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

Are your WSDLs auto generated or some samples you are using? And it'd be helpful if you tell us what's involved here (steps you done, your code etc...).

And welcome to the CodeRanch!


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Willian Yassunaka
Greenhorn

Joined: Dec 29, 2008
Posts: 2
I found out the problem. When I built the Web Service from the original WSDL (in .Net), it generated a different WSDL to acess the service, and the client was built using the original WSDL.

So, the final result was that both WSDL (Client & Web Service) were different. The result is the error I described above.


thank you for the attention.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem using Apache CXF WebService client
 
Similar Threads
Test Connection failed ( IBM Websphere 5.1 Express )
Problem with mi EJB module..
Invoking HTTPS webservice
login error using WSAD5.1 & Oracle
Help needed to call a web service after TAM authentication - (401)Unauthorized