So in short, we can do POST but not GET

Samisa...

On Mon, Jul 12, 2010 at 10:18 AM, Amila Suriarachchi <[email protected]> wrote:

> hi,
>
> 1. You can not access a rule service using the browser since it has a
> complex type as the first element child.
>
> eg.
>
> <xs:element name="orderProcessorRequest">
>
>                 <xs:complexType>
>                     <xs:sequence>
>                         <xs:element maxOccurs="unbounded" minOccurs="0" 
> name="order" type="ax23:PlaceOrder" />
>
>                     </xs:sequence>
>
>                 </xs:complexType>
>             </xs:element>
>
>
>
> 2. But you can invoke using try it giving the inner xml of the place order
> request.
>
> eg.
>  <price>10</price>
> <quantity>100</quantity>
> <symbol>IBM</symbol>
>
> 3. Can be accessed with a POX request by setting the ENABLE_REST property.
>
> eg.
> try {
>             TestRuleServiceStub stub = new TestRuleServiceStub("
> http://localhost:8088/services/TestRuleService.TestRuleServiceHttpSoap11Endpoint/
> ");
>
>             PlaceOrder[] placeOrder = new PlaceOrder[2];
>             placeOrder[0] = new PlaceOrder();
>             placeOrder[0].setSymbol("SUN");
>             placeOrder[0].setPrice(101);
>             placeOrder[0].setQuantity(20);
>
>
> stub._getServiceClient().getOptions().setProperty(Constants.Configuration.ENABLE_REST,
> true);
>
>             Result result = stub.orderProcessor(placeOrder);
>             if (result.getOrderAccept() != null) {
>                 for (OrderAccept orderAccept : result.getOrderAccept()) {
>                     System.out.println("Order Accepted ==> " +
> orderAccept.getMessage());
>                 }
>             }
>
>             if (result.getOrderReject() != null) {
>                 for (OrderReject orderReject : result.getOrderReject()) {
>                     System.out.println("Order Rejected ==> " +
> orderReject.getReason());
>                 }
>             }
>
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();
>         } catch (java.rmi.RemoteException e) {
>             e.printStackTrace();
>         }
>
>     }
>
>
> thanks,
> Amila.
>
>
>
>
>
> On Wed, Jul 7, 2010 at 10:04 AM, Amila Suriarachchi <[email protected]>wrote:
>
>>
>>
>> On Sat, Jul 3, 2010 at 5:25 PM, Samisa Abeysinghe <[email protected]>wrote:
>>
>>>
>>>
>>> On Sat, Jul 3, 2010 at 2:17 PM, Paul Fremantle <[email protected]> wrote:
>>>
>>>> POST a set of facts and get a response resource that is the set of
>>>> updated facts?
>>>>
>>>
>>> The question originated, after I tried posting and it did not work.
>>> This was tried with the sample that ships with rules server.
>>>
>>> The error when POST was tried, looked to me as if it assumes
>>> WS-Addressing. But I could be wrong.
>>>
>>
>> I think I have misunderstood your question. If you send a POST request
>> with http with the request xml as the payload it should work. I have a test
>> and let you know.
>>
>> thanks,
>> Amila.
>>
>>
>>
>>
>>>
>>> Samisa...
>>>
>>>>
>>>> From this discussion I realize I don't know enough about rules!
>>>>
>>>> Paul
>>>>
>>>>
>>>> On 3 July 2010 03:51, Amila Suriarachchi <[email protected]> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Fri, Jul 2, 2010 at 4:12 AM, Samisa Abeysinghe <[email protected]>wrote:
>>>>>
>>>>>> Do we have support for $subject
>>>>>
>>>>>
>>>>> No. I think it is very hard to think how to map a rule service to a
>>>>> resource oriented service.
>>>>>
>>>>> thanks,
>>>>> Amila.
>>>>>
>>>>>
>>>>>>
>>>>>> Samisa...
>>>>>>
>>>>>> Samisa Abeysinghe
>>>>>> VP Engineering
>>>>>> WSO2 Inc.
>>>>>> http://wso2.com
>>>>>> http://wso2.org
>>>>>>
>>>>>> _______________________________________________
>>>>>> Carbon-dev mailing list
>>>>>> [email protected]
>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Carbon-dev mailing list
>>>>> [email protected]
>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Paul Fremantle
>>>> CTO and Co-Founder, WSO2
>>>> OASIS WS-RX TC Co-chair, VP, Apache Synapse
>>>>
>>>> Office: +44 844 484 8143
>>>> Cell: +44 798 447 4618
>>>>
>>>> blog: http://pzf.fremantle.org
>>>> twitter.com/pzfreo
>>>> [email protected]
>>>>
>>>> wso2.com Lean Enterprise Middleware
>>>>
>>>> Disclaimer: This communication may contain privileged or other
>>>> confidential information and is intended exclusively for the addressee/s. 
>>>> If
>>>> you are not the intended recipient/s, or believe that you may have received
>>>> this communication in error, please reply to the sender indicating that 
>>>> fact
>>>> and delete the copy you received and in addition, you should not print,
>>>> copy, retransmit, disseminate, or otherwise use the information contained 
>>>> in
>>>> this communication. Internet communications cannot be guaranteed to be
>>>> timely, secure, error or virus-free. The sender does not accept liability
>>>> for any errors or omissions.
>>>>
>>>> _______________________________________________
>>>> Carbon-dev mailing list
>>>> [email protected]
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>
>>>> Samisa Abeysinghe
>>> VP Engineering
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
> Thanks,
Samisa...

Samisa Abeysinghe
VP Engineering
WSO2 Inc.
http://wso2.com
http://wso2.org
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to