Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem using Apache CXF WebService client

 
Willian Yassunaka
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Willian Yassunaka
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic