Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-RPC DII Client and Stub._setProperty / Stub._getProperty

Yvan Sand
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I wrote a webservice client with DII and JAX-RPC, the client is working fine, but I have some problems when I'll get some runtime information about the service - especially with the operations from the javax.xml.rpc.Stub interface.

This code is working perfectly and I can set the Endpoint Address without any problems with the line ((Stub) remote)._setProperty(...) :

But how can I get information about the actual Endpoint Address of the Port for example? Or how can I get all the Property names? I thought it's easy with the operation Stub._getProperty(...) or Stub._getPropertyNames()?!
But when I'll try to add the following code to the above example, I'll get an javax.xml.rpc.JAXRPCException:

results in

When I use the clientgen anttask and initialize the port with the generated stubs, everything is working fine and I can call the _getProperty(..) or getPropertyNames() operation - but I need to use a DII Client.

What's wrong or could you give me a hint how I could get the information about the actual Endpoint Address through another way?

Thanks for helping!

We use Weblogic Server 10gR3/ with some patches.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic