Skip to main content

It was detected that 'SOAP-ENC:Array' is in namespace

1 reply [Last post]
gk_gt
Offline
Joined: 2009-02-09
Points: 0

Hi ,

My platform details :-
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

I am trying to generate client code from this wsdl file
***************************************************************
<?xml version="1.0" encoding="UTF-8"?>

Service definition of function osp__getPasswordMessage

Service definition of function osp__login

Service definition of function osp__loginForcedPassword

Service definition of function osp__logout

Service definition of function osp__modifyPassword

Service definition of function osp__removeOperProp

Service definition of function osp__setMenu

Service definition of function osp__updateOperProp

gSOAP 2.3.8 generated service definition

***************************************************************

but i am getting this exception

************************
parsing WSDL...

[WARNING] src-resolve.4.2: Error resolving component 'SOAP-ENC:Array'. It was detected that 'SOAP-ENC:Array' is in namespace 'http://schemas
.xmlsoap.org/soap/encoding/', but components from this namespace are not referenceable from schema document 'file:/D:/Views/smartmetering/gk
g_sm_v1/SmartMetering/smartmeteringtools/jafa/operationexecutionhandler/ospaccservice/etc/acct.wsdl#types?schema1'. If this is the incorrect
namespace, perhaps the prefix of 'SOAP-ENC:Array' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag s
hould be added to 'file:/D:/Views/smartmetering/gkg_sm_v1/SmartMetering/smartmeteringtools/jafa/operationexecutionhandler/ospaccservice/etc/
acct.wsdl#types?schema1'.
line 27 of file:/D:/Views/smartmetering/gkg_sm_v1/SmartMetering/smartmeteringtools/jafa/operationexecutionhandler/ospaccservice/etc/acct.w
sdl#types?schema1

[ERROR] undefined simple or complex type 'SOAP-ENC:Array'
line 27 of file:/D:/Views/smartmetering/gkg_sm_v1/SmartMetering/smartmeteringtools/jafa/operationexecutionhandler/ospaccservice/etc/acct.w
sdl

[ERROR] undefined attribute 'SOAP-ENC:arrayType'
line 31 of file:/D:/Views/smartmetering/gkg_sm_v1/SmartMetering/smartmeteringtools/jafa/operationexecutionhandler/ospaccservice/etc/acct.w
sdl

[ERROR] undefined simple or complex type 'SOAP-ENC:Array'
line 115 of file:/D:/Views/smartmetering/gkg_sm_v1/SmartMetering/smartmeteringtools/jafa/operationexecutionhandler/ospaccservice/etc/acct.
wsdl

[ERROR] undefined attribute 'SOAP-ENC:arrayType'
line 116 of file:/D:/Views/smartmetering/gkg_sm_v1/SmartMetering/smartmeteringtools/jafa/operationexecutionhandler/ospaccservice/etc/acct.
wsdl

Exception in thread "main" java.lang.NullPointerException
at com.sun.tools.internal.xjc.reader.internalizer.SCDBasedBindingSet.apply(SCDBasedBindingSet.java:201)
at com.sun.tools.internal.xjc.ModelLoader.createXSOM(ModelLoader.java:502)
at com.sun.tools.internal.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:216)
at com.sun.tools.internal.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:69)
at com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:120)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2173)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:173)
at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:119)
at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:100)
at com.sun.tools.internal.ws.WsImport.main(WsImport.java:38)

************************

kr,
Gaurav

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ramapulavarthi
Offline
Joined: 2004-06-01
Points: 0

JAX-WS tools don't support rpc/encoded style wsdls. For that you need to use JAX-RPC tool wscompile.