cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Java Toolkit (Jlink) JAX-WS Web-Service Connection Error

MMK2
6-Contributor

Java Toolkit (Jlink) JAX-WS Web-Service Connection Error

Dear All,

I try to write an application which creates an object with JAX-WS library, but Creo gives JAXBException.

The same code works very well in a standalone application.

I think that Creo cannot run JAX-WS libraries. I try to add jaxws library to the project manually but it does not work.

 

try {
  EdmonWSSoap ws = new EdmonWS().getEdmonWSSoap();
} catch (Exception e) {
  DisplayMessage(e.getMessage());
  DisplayMessage(e.getCause().getMessage());
  return true;
}

Error Message:

javax.xml.bind.JAXBException: {http://tempuri.org/}eitem is not a valid property on class org.tempuri.CreateEItem

{http://tempuri.org/}eitem is not a valid property on class org.tempuri.CreateEItem

class org.tempuri.CreateEItem do not have a property of the name {http://tempuri.org/}eitem

 

Is there any solution for this issue?

In the meantime, I try to send Creo BoM to our ERP application. We have a SOAP Web Service for ERP connection I can reed CREO data very well and all web-service classes are ready but I cannot fix ws connection issue 😞

 

Thanks in advance for your support.

2 REPLIES 2
sjuraj
13-Aquamarine
(To:MMK2)

Check this

https://stackoverflow.com/questions/33783349/jaxbexception-not-a-valid-property-on-class-org-tempuri-billpull

 

I have not used JAX-WS yet, but I problem might be in your configuration.

I do not know how JAX-WS works, but if it creates thread which communicate with main thread it may cause problem, because jlink app in single-threaded and communication with any other thread may cause problems of whole application.

Top Tags