Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A generic SOAP service transformer #34

Open
kaspersorensen opened this issue Jul 7, 2014 · 1 comment
Open

A generic SOAP service transformer #34

kaspersorensen opened this issue Jul 7, 2014 · 1 comment

Comments

@kaspersorensen
Copy link
Member

Some ideas to make a generic SOAP service transformer possible:

  • Descriptor of the transformer should be explicitly provided in conf.xml. This will allow multiple instances in the descriptor catalog, of the same generic SOAP transformer class.
  • User should specify the following in conf.xml:
    • Endpoint URL
    • Request template with variable parts like this: ${foo}
    • Response configuration could be done with XPath statements or so. Or else the return type would be a single string with the complete SOAP response.
  • Pooling and Error Handling of requests should also be configurable somehow.

Demo/test with a public weather service

Also implement for REST?

@kaspersorensen
Copy link
Member Author

A bit of pseudo code for making a dynamic SOAP client:

QName serviceName = new QName(...);
Service service = Service.create(serviceName);
QName portName = new QName(...);
String endpointAddress = "...";
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress);
Dispatch<SOAPMessage> dispatch = service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE);
SOAPMessage request = ...;
SOAPMessage response = dispatch.invoke(request);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant