Maha Saad
Maha Saad

Reputation: 123

i want to test OSB flow via its proxy service url in browser. With its URI it gives error and using postman also gives error

i installed postman utility in my Google chrome browser and i put proxy URl in postman utility address bar after selecting http post method. URL is http://localhost:7021/Testing2CBR/Proxy/ProxyGateway

and request code is

   <loanRequest xmlns:java="java:normal.client">
    <!--Optional:-->
    <java:Name>maha</java:Name>
    <!--Optional:-->
    <java:SSN>1234</java:SSN>
    <!--Optional:-->
    <java:Rate>1</java:Rate>
    <!--Optional:-->
    <java:Amount>10</java:Amount>
    <!--Optional:-->
    <java:NumOfYear>3</java:NumOfYear>
    <!--Optional:-->
    <java:Notes>123</java:Notes>
<loanRequest>

but it gives me error

 <faultstring>BEA-382030: Failure while unmarshalling message: Failed to parse XML text</faultstring>

i modified my request as

    <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>

<loanRequest xmlns:java="java:normal.client">
    <!--Optional:-->
    <java:Name>maha</java:Name>
    <!--Optional:-->
    <java:SSN>1234</java:SSN>
    <!--Optional:-->
    <java:Rate>1</java:Rate>
    <!--Optional:-->
    <java:Amount>10</java:Amount>
    <!--Optional:-->
    <java:NumOfYear>3</java:NumOfYear>
    <!--Optional:-->
    <java:Notes>123</java:Notes>
<loanRequest>
    </soapenv:Body>
</soapenv:Envelope>

and i also tried adding header over the request message, as mentioned in OSB proxy console window

 <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
</soap:Header>

but i am still getting the error. How should i format my xml request message so that Proxy service url accepts it in my postman utility of google chrome browser with http post method?

Upvotes: 0

Views: 1600

Answers (1)

Trent Bartlem
Trent Bartlem

Reputation: 2253

Test the proxy using the debug option in /sbconsole . You can enter the request, or you can choose enter the entire soap envelope. The pre-filled values in the text area can be used to create your own message.

Upvotes: 1

Related Questions