1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/writer/W3CAddressingWSDLGeneratorExtension.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/wsdl/writer/W3CAddressingWSDLGeneratorExtension.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -69,7 +69,10 @@ 1.11 if (a != null && !a.input().equals("")) { 1.12 addAttribute(input, a.input()); 1.13 } else { 1.14 - if (method.getBinding().getSOAPAction().equals("")) { 1.15 + 1.16 + String soapAction = method.getBinding().getSOAPAction(); 1.17 + // in SOAP 1.2 soapAction is optional ... 1.18 + if (soapAction == null || soapAction.equals("")) { 1.19 //hack: generate default action for interop with .Net3.0 when soapAction is non-empty 1.20 String defaultAction = getDefaultAction(method); 1.21 addAttribute(input, defaultAction); 1.22 @@ -143,7 +146,7 @@ 1.23 public void addBindingExtension(TypedXmlWriter binding) { 1.24 if (!enabled) 1.25 return; 1.26 - UsingAddressing ua = binding._element(AddressingVersion.W3C.wsdlExtensionTag, UsingAddressing.class); 1.27 + binding._element(AddressingVersion.W3C.wsdlExtensionTag, UsingAddressing.class); 1.28 /* 1.29 Do not generate wsdl:required=true 1.30 if(required) {