Work Context (work:WorkContext) In SOAP Header Is Generated And Sent Despite Configuration (Doc ID 1954578.1)

Last updated on JUNE 09, 2016

Applies to:

Web Services - Version 1.0.1 and later
Information in this document applies to any platform.

Symptoms

Work context (work:WorkContext) in SOAP header is generated and are being sent despite configuration.

 

This is not successful:

=================


<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
                    <S:Header>
                                        <work:WorkContext xmlns:work="http://oracle.com/weblogic/soap/workarea/">rO0ABXoAAAJ5ADBvcmFjbGUuZG1zLmNvbnRleHQuaW50ZXJuYWwud2xzLldMU0NvbnRleHRGYW1pbHkAAAFPAAAAKXdlYmxvZ2ljLndvcmthcmVhLlNlcmlhbGl6YWJsZVdvcmtDb250ZXh0AAABZKztAAVzcgAxd2VibG9naWMud29ya2FyZWEuU2VyaWFsaXphYmxlV29ya0NvbnRleHQkQ2Fycmllcv1CAh9z5wpPAwACWgAHbXV0YWJsZUwADHNlcmlhbGl6YWJsZXQAFkxqYXZhL2lvL1NlcmlhbGl6YWJsZTt4cHcEAAAAAXNyAEFvcmFjbGUuZG1zLmNvbnRleHQuaW50ZXJuYWwud2xzLldMU0NvbnRleHRGYW1pbHkkU2VyaWFsaXphYmxlSW1wbAAAAAAAAAAAAwABTAARbVdMU0NvbnRleHRGYW1pbHl0ADJMb3JhY2xlL2Rtcy9jb250ZXh0L2ludGVybmFsL3dscy9XTFNDb250ZXh0RmFtaWx5O3hwd0QAQjEuZTY0ZWE3MDExMzQ3Y2Q4NTotMjgzYzM5MGE6MTRhMWI1ZGY2MDU6LTgwMDAtMDAwMDAwMDAwMDAwZjY4Yjt2MHh3AQF4ACZ3ZWJsb2dpYy5kaWFnbm9zdGljcy5EaWFnbm9zdGljQ29udGV4dAAAAX8AAAAyd2VibG9naWMuZGlhZ25vc3RpY3MuY29udGV4dC5EaWFnbm9zdGljQ29udGV4dEltcGwAAAA9ZTY0ZWE3MDExMzQ3Y2Q4NTotMjgzYzM5MGE6MTRhMWI1ZGY2MDU6LTgwMDAtMDAwMDAwMDAwMDAwZjY4YgAAAAIAAAAAAAAA</work:WorkContext>
                    </S:Header>
                    <S:Body>
                                        <NPReturn xmlns="http://www.w3.org/schemas/Bulgaria/MNP/WSDL">
                                                            <SenderID>GLOB</SenderID>
                                                            <RangeOwnerID>VIVA</RangeOwnerID>
                                                            <RequestID>GLOBR200000000000383</RequestID>
                                                            <Timestamp>2014-12-09T17:57:40.668+02:00</Timestamp>
                                                            <MSISDN>35921346834</MSISDN>
                                        </NPReturn>
                    </S:Body>
</S:Envelope>
[websoa@lnxbus-s02 domains]$ curl http://portoutoss.bos.globul.bg/VIVA/ --header "content-type: text/xml; charset=utf-8"  --data @npSample.xml
Bad request


This is successful:

==============


<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
                    <S:Header/>
                    <S:Body>
                                        <NPReturn xmlns="http://www.w3.org/schemas/Bulgaria/MNP/WSDL">
                                                            <SenderID>GLOB</SenderID>
                                                            <RangeOwnerID>VIVA</RangeOwnerID>
                                                            <RequestID>GLOBR200000000000383</RequestID>
                                                            <Timestamp>2014-12-09T17:57:40.668+02:00</Timestamp>
                                                            <MSISDN>35921346834</MSISDN>
                                        </NPReturn>
                    </S:Body>
</S:Envelope>
[websoa@lnxbus-s02 domains]$ curl http://portoutoss.bos.globul.bg/VIVA/ --header "content-type: text/xml; charset=utf-8"  --data @npSample.xml
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><NPOperationReply xmlns="http://www.w3.org/schemas/Bulgaria/MNP/WSDL"><ACK>OK</ACK></NPOperationReply></SOAP-ENV:Body></SOAP-ENV:Envelope>[websoa@lnxbus-s02 domains]$

Changes

This is not a SOA oob adapter. It is just a java class file that uses the ws client jar and serves all outgoing traffic.
The client jar is built using ant 1.7.1 and clientgen (weblogic.wsee.tools.anttasks.ClientGenTask) command as follows:
<clientgen
autoDetectWrapped="false"
wsdl="${basedir}/src/OSB/NP_OSB/WSDL/NPInboundWS.wsdl"
copyWsdl="true"
destFile="${service.dest}/${jar_file}"
type="JAXWS"/>

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms