Hi All,
I need to consume a REST web service but the web service which i have to consume has reveled the Request format in a XML. I am not able to understand what are parameters i have to pass and also no idea how to form a http post request as the provide XML.
------------------------------------------------------------------------
Below are the request example which is provide in XML format:
------------------------------------------------------------------------
{
"authInfo": {
"authBySession": {
"session": "some string"
},
"authByEmail": {
"email": "any string",
"password": "yet another string"
},
"sessionType": "NoSession",
"authByComcast": {
"comcastUsername": "yet another string",
"password": "some string"
},
"clientInfo": {
"maxId": 0,
"clientId": "some string",
"timezone": 1001,
"version": "some string",
"contactDisplay": "firstName",
"clientOS": "any string",
"partnerId": "any string",
"model": "some string",
"clientIcon": {
"hexEncoded": "0FB7"
},
"locale": "(unknown XSD element)",
"clientName": "yet another string",
"requiredFields": {
"group": [
{
"fields": {
"separated": {
"value": [
"some string",
"yet another string"
]
},
"delimited": {
"delimiter": "any string",
"data": "any string"
}
},
"type": "Contact"
},
{
"fields": {
"separated": {
"value": [
"some string",
"some string"
]
},
"delimited": {
"delimiter": "some string",
"data": "some string"
}
},
"type": "Contact"
}
]
},
"manufacturer": "some string",
"type": "Yahoo"
}
}
}
Please help me
Thanks
I need to consume a REST web service but the web service which i have to consume has reveled the Request format in a XML. I am not able to understand what are parameters i have to pass and also no idea how to form a http post request as the provide XML.
------------------------------------------------------------------------
Below are the request example which is provide in XML format:
------------------------------------------------------------------------
{
"authInfo": {
"authBySession": {
"session": "some string"
},
"authByEmail": {
"email": "any string",
"password": "yet another string"
},
"sessionType": "NoSession",
"authByComcast": {
"comcastUsername": "yet another string",
"password": "some string"
},
"clientInfo": {
"maxId": 0,
"clientId": "some string",
"timezone": 1001,
"version": "some string",
"contactDisplay": "firstName",
"clientOS": "any string",
"partnerId": "any string",
"model": "some string",
"clientIcon": {
"hexEncoded": "0FB7"
},
"locale": "(unknown XSD element)",
"clientName": "yet another string",
"requiredFields": {
"group": [
{
"fields": {
"separated": {
"value": [
"some string",
"yet another string"
]
},
"delimited": {
"delimiter": "any string",
"data": "any string"
}
},
"type": "Contact"
},
{
"fields": {
"separated": {
"value": [
"some string",
"some string"
]
},
"delimited": {
"delimiter": "some string",
"data": "some string"
}
},
"type": "Contact"
}
]
},
"manufacturer": "some string",
"type": "Yahoo"
}
}
}
Please help me
Thanks