XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Bob KrauseSubject: Web Service Client - JAXRPCTIE01: caught exception while handling request: unexpected encoding style:
Author: Bob Krause
Date: 25 May 2006 10:43 AM
Hello,

I am looking at this tool and attempted to use it to create a Web Service Client based on the WSDL:

http://rxonline.epocrates.com/access?WSDL

When I attempt to send the request for the acquireLicense operation I receive the following error message:

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: JAXRPCTIE01: caught exception while handling request: unexpected encoding style: expected=http://schemas.xmlsoap.org/soap/encoding/, actual=
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:JAXRPCTIE01: caught exception while handling request: unexpected encoding style: expected=http://schemas.xmlsoap.org/soap/encoding/, actual=
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)......

I am using Stylus Studio Enterprise Edition 2006, Release 2 Build 591d. Note: you will not be able to exercise the operations based on the WSDL becaue it requires only specific ip addresses to access and a password.

Thanks,
Bob Krause

Postnext
Ivan PedruzziSubject: Web Service Client - JAXRPCTIE01: caught exception while handling request: unexpected encoding style:
Author: Ivan Pedruzzi
Date: 25 May 2006 01:34 PM
Hi Bob,

Do you get the error when using Web Service Call Composer or when executing the Java code generated by Stylus Studio?

If you are in control of the WSDL file could you please try to add the soap encoding name-space declaration like the following?

<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="urn:Foo"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
name="AccessService"
targetNamespace="urn:Foo">

Thank You
Ivan Pedruzzi
Stylus Studio Team

Postnext
Bob KrauseSubject: Web Service Client - JAXRPCTIE01: caught exception while handling request: unexpected encoding style:
Author: Bob Krause
Date: 25 May 2006 02:02 PM
Hello,

I received the error in using the Web Service Call Composer (which I believe is the menu item, File -> New -> Web Service Call.

I took the access.wsdl and save it to my local file system and included the encoding line so it looks like:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Foo" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="AccessService" targetNamespace="urn:Foo">

I then used the WSDL be referencing the saved copy on my file system and received the same error:

<?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Foo" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="AccessService" targetNamespace="urn:Foo">

I have also attached the access.wsdl I reference on my local drive.

Bob Krause


Documentaccess.wsdl
access.wsdl

Posttop
Ivan PedruzziSubject: Web Service Client - JAXRPCTIE01: caught exception while handling request: unexpected encoding style:
Author: Ivan Pedruzzi
Date: 25 May 2006 05:04 PM

If you are familair with Java programming try to generate the Web Service Client (click WebServiceCall -> Web Service Client)
them use the following simple application to call your service.

import Foo.*;
public class Test
{
public static void main(String args[]) throws Exception{
AuthenticationIfBindingStub ws =
new AuthenticationIfBindingStub(new AccessServiceLocator());
String result = ws.acquireLicense( <parameter valus> );
System.out.println(result);
}
}

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.