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 On 1/28/08, Crimor <[EMAIL PROTECTED]> wrote: > > > If i insert something else in the post xmlvalue variable i got a response > from the php but i need this komplex xmlstring to be posted. > > > Endpoint provider bc > > <beans xmlns:http="http://servicemix.apache.org/http/1.0" > xmlns:order="http://mycompany/mptbinding/v1/" > > > <http:endpoint service="order:MPTWebService" > endpoint="MPTWebService" > role="provider" > > locationURI="http://externalhost/webservice/reservation.php" > defaultMep="http://www.w3.org/2004/08/wsdl/in-only" /> > > </beans> > > Javacode: Call > > ServiceMixClient client = new ServiceMixClientFacade(context); > > InOut exchange = null; > try { > exchange = client.createInOutExchange(); > > } > catch (MessagingException e) { > System.out.println("Fehler in exchange"); > } > > NormalizedMessage message = exchange.getInMessage(); > Map <String,String> headers = new HashMap <String,String>(); > headers.put("auth_key", "key"); > headers.put("id", "2"); > headers.put("version", "1"); > headers.put("loginuseremail", "email"); > > headers.put("xmlvalue",mptMessage.generateXMLString > ("crmservice").toString()); > message.setProperty(JbiConstants.PROTOCOL_HEADERS,headers); > > try { > message.setContent(new StreamSource(new StringReader(xmlval))); > } > catch (MessagingException e) { > System.out.println("Fehler in message"); > } > logger.info("Call() - propertyValues - "+ > message.getProperty(JbiConstants.PROTOCOL_HEADERS)); > // lets use a specific service to dispatch to > QName service = new QName("http://mycompany.net/mptbinding/v1/", > "MPTWebService"); > exchange.setService(service); > try { > System.out.println("Sending....."); > client.sendSync(exchange); > > } > catch (MessagingException e) { > System.out.println("Fehler im senden"); > } > > NormalizedMessage outMessage = exchange.getOutMessage(); > > > > Freeman Fang wrote: > > > > Would you please append the configuration of your endpoint? > > > > Freeman > > > > > -- > View this message in context: > http://www.nabble.com/Error-by-creating-a-connetion-over-http-provider-service-to-external-php-Service-tp15132807s12049p15133911.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
