Re: Pass through Web Service

2008-02-01 Thread John Cabral
Thank you very much for your help.

JC


On Jan 31, 2008 11:32 PM, Deepal Jayasinghe [EMAIL PROTECTED] wrote:

  Hello,
  I am curious about how to create a web-service when the payloads it
  delivers could have un-anticipated elements.  That is, the xsd for the
  payloads would have to leave open the possibility of potentially
  random elements being included.  In this case, only the outermost tag
  would be known as well as a few other elements.  However, its
  complexType declaration would also have an xsd:any element.Because
  of the unknown elements, there seems to be no good way to characterize
  such messages in a corresponding Java class.  So, I don't expect the
  code generation tools to be of any use here.  The alternative would be
  to design the web-service so that it is able to put an arbitrary XML
  message into a payload.  Could you help me start researching how to
  implement such a service?  This is a more general question than this
  message about RDF
 
 In Axis2 you can write your service impl class with Axiom and get this
 working. I mean you can write your service impl class as below

 class MyService {
   public OMElement getData(OMElement value){
 // do the processing here
  }
 }

 Thanks
 Deepal

 



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Pass through Web Service

2008-01-31 Thread John Cabral
Hello,
I am curious about how to create a web-service when the payloads it
delivers could have un-anticipated elements.  That is, the xsd for the
payloads would have to leave open the possibility of potentially
random elements being included.  In this case, only the outermost tag
would be known as well as a few other elements.  However, its
complexType declaration would also have an xsd:any element.Because
of the unknown elements, there seems to be no good way to characterize
such messages in a corresponding Java class.  So, I don't expect the
code generation tools to be of any use here.  The alternative would be
to design the web-service so that it is able to put an arbitrary XML
message into a payload.  Could you help me start researching how to
implement such a service?  This is a more general question than this
message about RDF
(http://marc.info/?i=418E552C.2020002%20()%20hp%20!%20com), but I
think that they would have similar solutions.

(NOTE:  I realize that this violates SOA principles because of the
looseness in what the service is delivering.  However, this is for a
demo, rather than a final version and the finished product will have a
tighter schema.)

Thank you,
JC

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Pass through Web Service

2008-01-31 Thread Deepal Jayasinghe



Hello,
I am curious about how to create a web-service when the payloads it
delivers could have un-anticipated elements.  That is, the xsd for the
payloads would have to leave open the possibility of potentially
random elements being included.  In this case, only the outermost tag
would be known as well as a few other elements.  However, its
complexType declaration would also have an xsd:any element.Because
of the unknown elements, there seems to be no good way to characterize
such messages in a corresponding Java class.  So, I don't expect the
code generation tools to be of any use here.  The alternative would be
to design the web-service so that it is able to put an arbitrary XML
message into a payload.  Could you help me start researching how to
implement such a service?  This is a more general question than this
message about RDF
  
In Axis2 you can write your service impl class with Axiom and get this 
working. I mean you can write your service impl class as below


class MyService {
 public OMElement getData(OMElement value){
   // do the processing here
}
}

Thanks
Deepal





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]