OSB-12c : Any XML Message type usecase

As WSDL type’s services, we can create proxy and business service based on AnyXML MessageType in oracle Service Bus


Create a new folder and name it as “AnyXML_Based_ServiceType”.


Create sub folder structure as shown below.



Create new Http based proxy service which is of message type ‘AnyXML’.
Service Name: AnyXML_MessageType_ProxyService
Transport: HTTP
Service Type: AnyXML





In Pipeline, add an ‘IF’ condition with below logic.

($inbound/ctx:transport/ctx:request/tp:headers/tp:user-header[@name="Content-Type"]/@value)="text/xml"



If ‘IF’ condition passes, incoming body will be replaced with final success response structure.




If ‘IF’ condition fails, error will be raised with below code and description.
Error Code: 1001
Error Desc: Testing of Any XML Message Failed.



Deploy the service into local standalone server. Once deployment is successful, we can locate service in sb console.



Run AnyXML_Based_ServiceTypePipeline



Pass some valid XML structure as shown below



On successful execution, we can see response as below.


Comments

  1. Hi.
    I am working with an "Any XML" proxy server and everything works fine except for the final response. All I get is the content of the body from a proxy I call via Dynamic Routing. I get no header at all but when I check the OSB debug console I can see the response variables "$header" and "$body" do have all the info returned by the called proxy.

    How can I forward that response so that it appears just as the called proxy gave it?

    ReplyDelete
    Replies
    1. Proxy **SERVICE**, I wrote "server" by mistake

      Delete

Post a Comment

Popular posts from this blog

OSB-12C : XA Transactional Support feature

Static code analysis of Terraform .tf files using ‘Checkov’ — Secure your infrastructure

OSB12c : Schema Validation - Dynamic Validation