... or is it that SM just always sends one XML document arround?
Means that if you send a document to a http provider this provider is not
allowed to have http parameters. I just gets posted on String of XML data.
If the provider is soap enabled, the xml data gets surounded with a soap
envelope ...

... qeustions over questions ...


Cybexion wrote:
> 
> Hi,
> 
> honestly, thats also not clear for me.
> Lets say I have a "Service" which is provided by an url like:
> coolservice.server.com/service&key1=value1&key2=value2&xmldata=<data>lots
> of xml</data>
> 
> How can this "Service" be included (and connected) into ServiceMix?
> Should the whole ...&....>... data be but into the content of jms or
> should all parameters be put into jms properties?
> How is the mapping done?
> Or is it that I do completely misunderstand SM?
> Which example is good to read?
> 
> Thanks in advance and regards
> 
> cybexion
> 
> 
> 
> 
> Crimor wrote:
>> 
>> Because i do not really understand how this post request is working in
>> servicemix. I have to send the follow request to  the php application:
>> 
>>     encString.append("auth_key=").append(URLEncoder.encode("key",
>> "UTF-8")); 
>>     encString.append("&id=").append(URLEncoder.encode("2", "UTF-8")); 
>>     encString.append("&version=").append(URLEncoder.encode("1",
>> "UTF-8"));
>>    
>> encString.append("&loginuseremail=").append(URLEncoder.encode("email",
>> "UTF-8"));
>>     encString.append("&xmlvalue=").append(URLEncoder.encode([komplex
>> order].toString(), "UTF-8"));
>> 
>>      auth_key="key"&id="id"&loginuseremail="email"&xmlvalur="komplex
>> order"
>> 
>> 
>> this works fine if i use the JAVA URL class, but we don't want to call
>> mptservice over the URL class in java directly. We want this to be done
>> by servicemix, but the understanding how servicemix, especially this
>> NormalizedMessage class, works isn't so clear. Is it even possible to
>> send this mentioned request over the HTTP-Bindingcomponent? What does
>> NormalizedMessage.setProperty stands for, can i use them to map my http
>> variable or should i stay by the JbiConstants.PROTOCOL_HEADERS? The
>> NormalizedMessage.setContend can't be clear so i set something in it.
>> Question over Question?
>> 
>> Crimor
>> 
>> 
>> 
>> 
>> Freeman Fang wrote:
>>> 
>>> Hi,
>>> 
>>> I am a little confused about the debug log in http component, seems you
>>> put
>>> the complex "order" xml fragment both in the header and the content, why
>>> you
>>> put this big xml fragment in your message header?
>>> 
>>> Freeman
>>> 
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-by-creating-a-connetion-over-http-provider-service-to-external-php-Service-tp15132807s12049p15180893.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to