TUSCANY-3778: Fix WSDL generation and enable commented out tests

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1036533 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
nash 2010-11-18 17:06:10 +00:00
parent 2b33b36b02
commit a8f36d58de
2 changed files with 4 additions and 5 deletions

View file

@ -108,9 +108,9 @@ public class HttpTransportTestCase{
abean.setField3(bbean);
assertEquals("Hello 3 4 1 2", wsProxy.getGreetingsDBean(abean));
/* TUSCANY-3778
String byteArrayString = "Hello World";
assertEquals(byteArrayString, String.valueOf(wsProxy.getGreetingsByteArray(byteArrayString.getBytes())));
assertEquals(byteArrayString, new String(wsProxy.getGreetingsByteArray(byteArrayString.getBytes())));
try {
wsProxy.getGreetingsException("Fred");
@ -118,7 +118,6 @@ public class HttpTransportTestCase{
} catch(Exception ex) {
}
*/
}
@Test

View file

@ -979,7 +979,7 @@ public class Interface2WSDLGenerator {
Message faultMsg = definition.getMessage(faultName);
if (faultMsg == null) {
faultMsg = definition.createMessage();
faultMsg.setQName(faultName);
faultMsg.setQName(new QName(namespaceURI, faultName.getLocalPart()));
faultMsg.setUndefined(false);
definition.addMessage(faultMsg);
faultMsg.addPart(generatePart(definition, faultType.getLogical(), faultName.getLocalPart()));
@ -1107,7 +1107,7 @@ public class Interface2WSDLGenerator {
}
helpers.put(db, helper);
}
TypeInfo typeInfo = helper.getTypeInfo(javaType.isArray() ? javaType.getComponentType() : javaType,
TypeInfo typeInfo = helper.getTypeInfo(byte[].class != javaType && javaType.isArray() ? javaType.getComponentType() : javaType,
dataType.getLogical());
ElementInfo element = new ElementInfo(name, typeInfo);
element.setMany(byte[].class != javaType && javaType.isArray());