Publicando o pedido SOAP através da linha de comando curl no ksh

0

Estou tentando postar uma solicitação SOAP por meio da linha de comando curl. No bash, eu sou capaz de obter o resultado desejado. No entanto, usando o ksh, estou recebendo um erro:

syntax error: "<" unexpected

Eu tentei analisar os dados da postagem, substituindo (' por ") , mas o servidor retorna um erro 500.

Qualquer ajuda seria muito apreciada! Aqui está o meu pedido:

curl -vfk -X POST --data-binary $'<soap:Envelope xmlns:xsi=\'http://www.w3.org/2001/XMLSchema-instance\' xmlns:xsd=\'http://www.w3.org/2001/XMLSchema\' xmlns:soap=\'http://schemas.xmlsoap.org/soap/envelope/\'><soap:Body><GetListItems xmlns=\'http://schemas.microsoft.com/sharepoint/soap/\'><listName>Orders</listName><viewName></viewName><query><Query>\x09<OrderBy> \x09<FieldRef Name="Modified" Ascending="FALSE"/>\x09</OrderBy>\x09<Where>\x09<And>\x09\x09\x09<Eq><FieldRef Name="WCBYear"/><Value Type="Number">2016</Value></Eq>\x09<Or>\x09\x09<Or>\x09\x09\x09<Or>\x09\x09\x09\x09<Eq><FieldRef Name="WCBOrderType"/><Value Type="Text">Reconsideration</Value></Eq>\x09\x09\x09\x09<Eq><FieldRef Name="WCBOrderType"/><Value Type="Text">Remand</Value></Eq>\x09\x09 \x09</Or>\x09\x09\x09<Eq><FieldRef Name="WCBOrderType"/><Value Type="Text">Review</Value></Eq>\x09  \x09</Or>\x09\x09<Eq><FieldRef Name="WCBOrderType"/><Value Type="Text">Miscellaneous</Value></Eq>\x09</Or>\x09</And>\x09</Where>"\x09</Query></query><viewFields>  <ViewFields Properties=\'True\' >  <FieldRef Name=\'Title\' />  <FieldRef Name=\'WCBYear\' />  <FieldRef Name=\'WCBDateOrderIssued\' />  <FieldRef Name=\'WCBCase\' />  <FieldRef Name=\'WCBOrderType\' />  <FieldRef Name=\'WCBClaimantName\' />  <FieldRef Name=\'WCBVanNattaPage\' />  <FieldRef Name=\'WCBVanNattaVolume\' />  <FieldRef Name=\'WCBThirdPartyType\' /> </ViewFields></viewFields><rowLimit>5000</rowLimit><queryOptions><QueryOptions><ViewAttributes Scope=\'Recursive\' /></QueryOptions></queryOptions></GetListItems></soap:Body></soap:Envelope>' --location 
    
por Shabbir 27.12.2016 / 20:43

0 respostas