Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

JAX RPC question doubt

Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JAX-RPC client is using a stub to connect to s service. The stub implementation supports only the standard properties supported in the JAX-RPC Stub interface. The client must set the endpoint address property on the stub. Given:
Stub._setProperty("HTTPLOCATION", http://localhost:7001/services/mySvc);

What is the result?


Select 1 correct option.

1. The application throws an application-specific exception.

2. The application throws a java.rmi.RemoteException

3. The application throws a javax.xml.rpc.JAXRPCException

4. The value http://localhost:7001/services/mySvc is assigned to the "HTTPLOCATION" property.

Correct answer:The application throws a javax.xml.rpc.JAXRPCException
Can any one explain?
Thanks in advance.
Posts: 2968
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
void javax.xml.rpc.Stub._setProperty(String name, Object value)

So the basis for this question is: What are the supported standard properties of javax.xml.rpc.Stub? Note however that even standard properties can be optional.

We haven't even connected to the web service application so we couldn't be getting a SOAP Fault that is specified in the WSDL and is translated into a Java checked (application) exception.

We haven't even tried to establish a connection yet so it wouldn't be java.rmi.RemoteException.
[ April 11, 2008: Message edited by: Peer Reynders ]
Won't you be my neighbor? - Fred Rogers. tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic