Error when using byte array in web service model interface
Hello everybody,
I'm using a web service model in my web dynpro application. The web service requires a byte array as import parameter.
When starting the web dynpro application the following error occurs:
com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type java:byte not found
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:216)
I'm using byte arrays several times in my application --> no problem. So why does the error say "byte not found" when using the web service?
Thanks for your help!
regards
Christian
Hi,
maybe this is the problem. The type is byte and not binary.
But I have the same problem as mentioned in the other thread: I can't change the type.
The type in the WSDL of my web service is "base64binary". Is there maybe a possibility to import a jar-file for this type?
Christian
Similar Messages
-
401 Unauthorized Error When calling a SharePoint REST web service from SharePoint 2013 Workflow
We have our Workflow Manger installed on the same server as our SharePoint 2013 WFE development environment. When creating a SharePoint 2013 Workflow all Calls to a SharePoint 2013 REST web service results in a 401 Unauthorized error.
As an example I created a simple workflow that should return a JSON result. The REST Url returns the results in the browser without error.
Set Variable:webServiceUrl to https://<hostnamedsitecollection>/_vti_bin/client.svc/web/lists/getbytitle('ISR%20Approvers')/Items?$select=Title&$filter=Title%20eq%20%27General%27
then Build{...} Dictionary (Output to Variable:requestHeaders)
then Call [%Variable:webServiceUrl%] HTTP web service with request (ResponseContent to Variable:responseContent |ResponseHeaders to responseHeaders | ResponseStatusCode to Variable:responseCode)
The RequestHeader is set to the requestHeaders variable though the web service call properties
then Log Variable:responseCode to the workflow history list
After manually running the workflow in SharePoint on a list item in the ISR Approvers list it Logs "Unauthorized" in the Workflow History Log. It does this with every SharePoint REST web service call that I have tried through the workflow.
It doesn't have anything to do with the Workflow Manger being installed on the same machine as the SharePoint WFE does it?
Thank You for any insightHi,
According to your post, my understanding is that you had 401 Unauthorized Error when calling a SharePoint REST web service from SharePoint 2013 Workflow.
Please make sure you use the ‘Call HTTP Web Service’ correctly.
You can enter the URL into the brower to check whether it is correctly.
You need to
create the Request header requestHeaders
using a Dictionary:
Accept : application/json;odata=verbose
Content-Type : application/json;odata=verbose
To associate the
requestHeaders variable, select the Call action
property, set the RequestHeaders property to
requestHeaders.
Please refer to the following articles:
Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013
Calling the SharePoint 2013 Rest API from a SharePoint Designer
Workflow
In addtion, you need to make sure you install the workflow manager correctly.
More information:
Install and configure workflow for SharePoint Server 2013
Known Issues in Workflow Manager 1.0
Troubleshooting Workflow Manager 1.0 Management and Execution
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Error when trying to create a web service from a wsdl file using jdeveloper
Hello,
I'm using the latest jdeveloper and jdk 6 update 20 on solaris sparc 10.
When I'm trying to create a web service from a wsdl on the java EE 1.5 platform i get the following error:
Validation failed:
java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
I've tried the endorsed mechanism with the latest jaxws-api.jar and jaxb-api.jar packages with no help.
It works fine when i use the java EE 1.4 platform....
The full Error description:
oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
+ at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1635)+
+ at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2846)+
+ at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2611)+
+ at oracle.jdeveloper.webservices.model.java.JavaWebService.setDescription(JavaWebService.java:745)+
+ at oracle.jdevimpl.webservices.wizard.jaxrpc.topdown.TDJaxWsSpecifyWsdlPanel.setDescription(TDJaxWsSpecifyWsdlPanel.java:364)+
+ at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1109)+
+ at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$5.run(SpecifyWsdlPanel.java:661)+
+ at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)+
+ at java.lang.Thread.run(Thread.java:619)+
Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
+ at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.newWsdlValidationException(WsaAdaptor.java:825)+
+ at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:515)+
+ at oracle.jdeveloper.webservices.tools.WebServiceTools.getSeiInfo(WebServiceTools.java:523)+
+ at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1741)+
+ at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1496)+
+ ... 8 more+
Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
+ at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:664)+
+ at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:475)+
+ at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1357)+
+ 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 oracle.jdevimpl.webservices.tools.wsa.Assembler$2$1.invoke(Assembler.java:218)+
+ at $Proxy34.getJaxWsSeiInfo(Unknown Source)+
+ at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)+
+ ... 11 more+
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
+ at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:186)+
+ at com.sun.tools.xjc.generator.bean.field.AbstractField.annotateReference(AbstractField.java:209)+
+ at com.sun.tools.xjc.generator.bean.field.AbstractField.annotate(AbstractField.java:164)+
+ at com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.createField(AbstractFieldWithVar.java:75)+
+ at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:89)+
+ at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:76)+
+ at sun.reflect.GeneratedConstructorAccessor53.newInstance(Unknown Source)+
+ at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)+
+ at java.lang.reflect.Constructor.newInstance(Constructor.java:513)+
+ at com.sun.tools.xjc.generator.bean.field.GenericFieldRenderer.generate(GenericFieldRenderer.java:64)+
+ at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:75)+
+ at com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:751)+
+ at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:539)+
+ at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:241)+
+ at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:181)+
+ at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)+
+ at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:251)+
+ at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)+
+ at oracle.j2ee.ws.common.tools.databinding.jaxb20.JAXB20TypeGenerator.generateJavaTypes(JAXB20TypeGenerator.java:117)+
+ at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:186)+
+ at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:647)+
+ ... 20 more+
Caused by: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
+ at java.lang.Class.getMethod(Class.java:1605)+
+ at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:184)+
+ ... 40 more+
Thanks,
Roy.Guys,
You are asking about an issue that was a pain in the nick for me few months ago. The problem is that you won't find mych help here as I figured out that Apex geeks here either did not do much webservices or ended up hating it as i do :) . This is an error that can be due many different reason, let me ask you this:
1- Does your the other system you are trying to call through webservices using HTTPS ?
2- If yes, did you create a valid oracle wallet for that https connection ?
3- Make sure you are using the correct URL ( am sure you do, just double check )
4- If using a proxy, then you have to define that in the web service reference creation page
provide more info and I hope I can help you with this,
Sam
Please reward good answers by marking them correct or helpful! -
Error 2170 when using Xcelsius with a web service
Hi,
I have built a small dashboard that gets data from a web service. When previewing it in XCelsius itself, the data is picked up without problem, but when exporting the file to PPT, Word or PDF, I get Error 2170 which is a connection error.
The Webservice I use a self-built one from a function module in an ECC6.0 system.
In the web (and her in SDN) I have found two solutions:
1) Flash settings. For Flash versions above 9.0, one has to allow connection to external programs. I have tried that but am not sure if I should allow connection for the PPT or PDF or for the .swf file "inside" (which I dont know the name of).
2) Server side. A crossdomain.xml file should be added to the root of the webserver. What folder would that be in the case of an ERP system and could I do that? Additionally: can the be the reason to my problem when the webservice works fine as long as called from within XCelsius?
I would be very grateful for ideas...
ThorbenThorben,
Here is what you need to do
-->Export your visualization to swf
-->Run the Swf, right click on visualization and got to settings.
OR
Click
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
In 3rd Tab (Global Security Settings)
--> Check box "Always Allow"
--> In the Drop down (Edit location... select Add Location
-->Browse the swf file
That is it...now reopen the .swf file, it should not throw error.
Hope this helps
-Anil -
HTTP error when trying to access RESTful web service from application
Hi,
We are getting the following error when trying to access a RESTful web service coming from Apex workspace 4.2.1 and Apex listener 2.1:
ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-29024: Certificate validation failure
In the Debug report, besides the above I also see:
error_backtrace: ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-06512: at "APEX_040200.WWV_FLOW_WEB_SERVICES", line 543 ORA-06512: at "APEX_040200.WWV_FLOW_WEB_SERVICES", line 1164 ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 396
We get that error whether we use https or http in the URI pointing to the web service. When I test the Web Service in Workspace RESTful service GUI, I get the data back. When I go build an application with a report calling the RESTful Web Service I get that error. Both the Application and the Workspace RESTful services are on the same Apex environment and even the same workspace.
What is odd is that I can actually put the URL of the web service into a browser and I get the data: (using the demo hr data in sample RESTful services.)
IN browser-- https://weblogic-dev.edu/apex/ace/hr/empinfo/
yields:
7839,KING,PRESIDENT,,1981-11-17T05:00:00Z,5000,,10 7698,BLAKE,MANAGER,7839,1981-05-01T04:00:00Z,2850,,30 7782,CLARK,MANAGER,7839,1981-06-09T04:00:00Z,2450,,10 7566,JONES,MANAGER,7839,1981-04-02T05:00:00Z,2975,,20 7788,SCOTT,ANALYST,7566,1982-12-09T05:00:00Z,3000,,20 7902,FORD,ANALYST,7566,1981-12-03T05:00:00Z,3000,,20 7369,SMITH,CLERK,7902,1980-12-17T05:00:00Z,800,,20 7499,ALLEN,SALESMAN,7698,1981-02-20T05:00:00Z,1600,300,30 7521,WARD,SALESMAN,7698,1981-02-22T05:00:00Z,1250,500,30 7654,MARTIN,SALESMAN,7698,1981-09-28T04:00:00Z,1250,1400,30 7844,TURNER,SALESMAN,7698,1981-09-08T04:00:00Z,1500,0,30 7876,ADAMS,CLERK,7788,1983-01-12T05:00:00Z,1100,,20 7900,JAMES,CLERK,7698,1981-12-03T05:00:00Z,950,,30 7934,MILLER,CLERK,7782,1982-01-23T05:00:00Z,1300,,10
Any ideas on what would be causing the Error above in our application?
Thanks,
Pat
Edited by: patfmnd on Mar 11, 2013 3:25 PM
In reviewing the above error, I think we are realizing that we have to have the Weblogic layer SSL cert (actually the CERT from our BigIP load balancer which also does our SSL termination) imported into the Oracle server wallet where Apex is installed. Am I correct?
PMWe resolved our problem. The Apex Administrative Guide made us realize that we had to set up Wallet path in the Instance. This required working with DBAs to follow the Advanced networking guide to get the wallet set up on our server. We then added that path to the Instance configuration. (Manager Instance --> Instance settings). We ran into another other issue related to our implementation of CAS but were able to resolve that, and 'voila' were able to get the sample RESTful service consumed by our application!!
Now to the task of figuring out how to get Basic Auth working between client application and RESTful web service. If anyone has that working, let us know!!
It would be helpful if in the documentation of the Apex 2.x listener or Apex install/configuration there was clear reference to the above steps required for HTTPS access to RESTful web services.
Pat -
Hi,
When I publish a PL/SQL package as a web service in J2EE 1.4 (Jax-RPC) Web Service version get this error:
oracle.j2ee.ws.common.tools.api.ValidationException: Error in database webservices assembly
at oracle.j2ee.ws.tools.wsa.db.WSADBPlugin.processDBEndpoint(WSADBPlugin.java:329)
at oracle.j2ee.ws.tools.wsa.Util.processDBEndpoint(Util.java:887)
at oracle.jdeveloper.webservices.model.plsql.PLSQLGenerator.preparePLSQLPortTypes(PLSQLGenerator.java:734)
at oracle.jdeveloper.webservices.model.plsql.PLSQLGenerator.doGeneration(PLSQLGenerator.java:233)
at oracle.jdeveloper.webservices.model.Generator.generateImpl(Generator.java:447)
at oracle.jdeveloper.webservices.model.Generator.generate(Generator.java:295)
at oracle.jdeveloper.webservices.model.WebService.saveEditImpl(WebService.java:3971)
at oracle.jdeveloper.webservices.model.WebService.mav$saveEditImpl(WebService.java)
at oracle.jdeveloper.webservices.model.WebService$1.run(WebService.java:3817)
at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
at java.lang.Thread.run(Thread.java:595)
GRAVE: JPublisher error: please check assembler settings, database connection and database schema. Use debug=true for details.
and when use J2EE 1.3 (Oracle) version WEb Service get this error:
java.lang.NullPointerException
at oracle.jdevimpl.webservices.generator.WrapperClassGenerator.generate(WrapperClassGenerator.java:262)
at oracle.jdevimpl.webservices.generator.SPWebServiceGenerator$1.run(SPWebServiceGenerator.java:285)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
at java.lang.Thread.run(Thread.java:595)
..... Is this a BUG????
please help!OK, This is the PL/SQL package:
Function:
FUNCTION Obtener_paises RETURN res_webservice AS
v_respuesta res_webservice;
i PLS_INTEGER:=1;
CURSOR C_paises IS
SELECT cpais, tpais
FROM paises
ORDER BY tpais;
BEGIN
v_respuesta := res_webservice(null,null);
v_respuesta.error := res_error(null,null,null);
v_respuesta.error.cerror := 0;
v_respuesta.error.cerror_ora := 0;
v_respuesta.error.terror := null;
v_respuesta.datos := res_datos ();
FOR v_pais IN C_paises LOOP
v_respuesta.datos.extend;
v_respuesta.datos(i) := reg_datos(null,null);
v_respuesta.datos(i).codigo := v_pais.cpais;
v_respuesta.datos(i).descripcion := v_pais.tpais;
i := i + 1;
END LOOP;
Insertar_log(NULL,SYSDATE,'C','Obtener_paises',NULL,'ERROR:0');
RETURN v_respuesta;
EXCEPTION
WHEN OTHERS THEN
v_respuesta.error.cerror := 1;
v_respuesta.error.cerror_ora := SQLCODE;
v_respuesta.error.terror := substr(SQLERRM,1,80);
Insertar_log(NULL,SYSDATE,'C','Obtener_paises',NULL,'ERROR:1 '||substr(SQLERRM,1,120));
RETURN v_respuesta;
END Obtener_paises;
TYPES USED:
CREATE OR REPLACE
TYPE res_webservice AS OBJECT (error res_error, datos res_datos);
CREATE OR REPLACE
TYPE res_error AS OBJECT (cerror NUMBER(1), cerror_ora VARCHAR2(12), terror VARCHAR2(80));
CREATE OR REPLACE
TYPE res_datos AS TABLE OF reg_datos;
CREATE OR REPLACE
TYPE reg_datos AS OBJECT(codigo VARCHAR2(12), descripcion VARCHAR2(150));
Thanks in advanced...
Could happen this bacause of these defined types??? -
Error returning large String arrays from web service
Hi,
I currently have an EJB that returns a String[] array that I have implemented as
a Web Service. When I execute a Java client (JSP) from Weblogic, I don't have a problem
as long as the returned array is relatively small, but when the array starts to get
a little larger (say 20 elements, about 30 chars each), I consistently get:
SAXException: java.lang.IllegalArgumentException:array element type mismatch.
Strangely enough, when my web service client is a .asp page running under MS IIS
(using the MS SOAP Toolkit), it works fine. I have returned as many as 15000 - 20000
array elements in one call. And since I am calling the same Weblogic EJB with the
MS client, I know it's a problem with the Java client, not the EJB.
Anybody know of a bug or had this experience before? Or know what I might be doing
wrong? FYI, I am using Weblogic 6.1 SP2.
Thanks,
SteveHi Steve,
Sure we're interested...I'll pass this along to the XML folks.
Thanks for the feedback,
Bruce
Steve Alexander wrote:
In case anyone is interested, I solved my problem. I was mis-diagnosing the problem
- thinking it was a size issue when it actually was a data issue. On the calls where
I was returning a large array, some of the array members were null. When I made them
enpty strings "", it worked. Apparently the default SAX parser BEA uses doesn't like
the nulls, whereas the MS parser doesn't care.
"Steve Alexander" <[email protected]> wrote:
Thanks Bruce,
FYI - I have reproduced the problem on WL7.0. I have turned it in to support
as you
suggested.
Steve
Bruce Stephens <[email protected]> wrote:
Hi Steve,
This does not ring any bells, however I would suggest that you file a support
case. If it
is an option you might try a later release (7.0).
Bruce
Steve Alexander wrote:
Hi,
I currently have an EJB that returns a String[] array that I have implementedas
a Web Service. When I execute a Java client (JSP) from Weblogic, I don'thave a problem
as long as the returned array is relatively small, but when the arraystarts to get
a little larger (say 20 elements, about 30 chars each), I consistentlyget:
SAXException: java.lang.IllegalArgumentException:array element type mismatch.
Strangely enough, when my web service client is a .asp page running underMS IIS
(using the MS SOAP Toolkit), it works fine. I have returned as many as15000 - 20000
array elements in one call. And since I am calling the same Weblogic
EJB
with the
MS client, I know it's a problem with the Java client, not the EJB.
Anybody know of a bug or had this experience before? Or know what I mightbe doing
wrong? FYI, I am using Weblogic 6.1 SP2.
Thanks,
Steve -
Timestamp Error when calling Encrypt and Signed Web Service
Hello,
I maked one Web Service in the Oracle Service Bus 10gR3 that supports Encryption and Sign, basically inserting (manually) this on WSDL Contract:
This two namespaces:
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
This Declarations:
<wsp:UsingPolicy Required="true"/>
<input>
<wsp:Policy>
<wsp:PolicyReference URI="policy:Encrypt.xml"/>
</wsp:Policy>
<soap:body use="literal" />
</input>
<wsp:Policy>
<wsp:PolicyReference URI="policy:Sign.xml"/>
</wsp:Policy>
The above declarations was inserted in the correct points inside the WSDL Contract and the Web Service is working correctly.
The Problem is related to Sign.xml declaration, when i insert this declaration:
<wsp:Policy>
<wsp:PolicyReference URI="policy:Sign.xml"/>
</wsp:Policy>
Then, the Web Service shows an error. Following the Request and Resonse (That shows the error):
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ger="http://www.abc.com.br/Service">
<soapenv:Header/>
<soapenv:Body>
<ger:gerarHashSenha>
<arg0>123456</arg0>
</ger:gerarHashSenha>
</soapenv:Body>
</soapenv:Envelope>
Response:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
*<faultstring>Can not retrieve header: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp</faultstring>*
</env:Fault>
</env:Body>
</env:Envelope>
Observation: I was invoking the WebService using the soapUI Tool.
I Tryed change the request to bellow code, but doesn't work:
<soapenv:Envelope xmlns:ger="http://www.abc.com.br/Service" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp wsu:Id="Timestamp-447" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2010-05-27T21:40:55.667Z</wsu:Created>
<wsu:Expires>2010-05-27T21:41:55.667Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ger:gerarHashSenha>
<arg0>123456</arg0>
</ger:gerarHashSenha>
</soapenv:Body>
</soapenv:Envelope>
Thanks.
Victor Jabur.someone has any idea ?
Thanks -
Error when calling BPEL process from web service client
I have created three projects here ,there're no problem when testing Composite Application(SynchronousSampleApplication) by test case inside this project.
When I create a Java Application(SynchronousSampleApp),inside this project I've created a web service client from file WSDL of BPEL. After that, In Main class, I call an operation from web service client.But have the following error:
Jul 17, 2008 4:48:22 PM synchronoussampleapp.Main main
SEVERE: null
java.rmi.RemoteException: HTTP transport error: java.net.MalformedURLException: For input string: "${HttpDefaultPort}"; nested exception is:
HTTP transport error: java.net.MalformedURLException: For input string: "${HttpDefaultPort}"
at SynSample.SynchronuosSamplePortType_Stub.synchronuosSampleOperation(SynchronuosSamplePortType_Stub.java:83)
at synchronoussampleapp.Main.main(Main.java:24)
Caused by: HTTP transport error: java.net.MalformedURLException: For input string: "${HttpDefaultPort}"
at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:140)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:96)
at SynSample.SynchronuosSamplePortType_Stub.synchronuosSampleOperation(SynchronuosSamplePortType_Stub.java:67)
... 1 more
Please help me soon. Thanks very much!Can't anyone help me? I'm using Netbean 6.1 and Glassfish server.
Do I need any additional plugin? -
"Connection refused" when using Java client for Web Service
I deployed a web service to Weblogic Server 7.0 running on Windows 2000. I can
use IE browser to see its WSDL perfectly but when I run the Java client, the proxy
method call generates the following error:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.<init>(Socket.java:291)
at java.net.Socket.<init>(Socket.java:119)
at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
lientBinding.java:412)
at weblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
lientBinding.java:390)
at weblogic.webservice.binding.soap.HttpClientBinding.send(HttpClientBin
ding.java:246)
at weblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
ndler.java:34)
at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
:131)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:417)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:359)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
181)
at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
207)
at CenterWSClient.main(CenterWSClient.java:73)
javax.xml.rpc.JAXRPCException: Failed to send request:java.net.ConnectException:
Connection refused: connect
at weblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
ndler.java:37)
at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
:131)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:417)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:359)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
181)
at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
207)
at CenterWSClient.main(CenterWSClient.java:73)
Exception in handler's handleRequest().
java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Conn
ection refused: connect; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: Connection refused: connect
at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
186)
at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
207)
at CenterWSClient.main(CenterWSClient.java:73)
Caused by: javax.xml.rpc.soap.SOAPFaultException: Connection refused: connect
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:459)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:359)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
at weblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
181)In your client program, when you do "new XXX_Impl(String wsdlurl)", did you
pass in the wsdl you were hitting with browser?
-Neal
"Ray Yan" <[email protected]> wrote in message
news:[email protected]...
>
I deployed a web service to Weblogic Server 7.0 running on Windows 2000. Ican
use IE browser to see its WSDL perfectly but when I run the Java client,the proxy
method call generates the following error:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
atjava.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.<init>(Socket.java:291)
at java.net.Socket.<init>(Socket.java:119)
atweblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
lientBinding.java:412)
atweblogic.webservice.binding.soap.HttpClientBinding.createSocket(HttpC
lientBinding.java:390)
atweblogic.webservice.binding.soap.HttpClientBinding.send(HttpClientBin
ding.java:246)
atweblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
ndler.java:34)
atweblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
:131)
atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:417)
atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:359)
atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
181)
atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
207)
at CenterWSClient.main(CenterWSClient.java:73)
javax.xml.rpc.JAXRPCException: Failed to sendrequest:java.net.ConnectException:
Connection refused: connect
atweblogic.webservice.core.handler.ClientHandler.handleRequest(ClientHa
ndler.java:37)
atweblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java
:131)
atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:417)
atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:359)
atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
181)
atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
207)
at CenterWSClient.main(CenterWSClient.java:73)
Exception in handler's handleRequest().
java.rmi.RemoteException: SOAPFault:javax.xml.rpc.soap.SOAPFaultException: Conn
ection refused: connect; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: Connection refused: connect
atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
186)
atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
207)
at CenterWSClient.main(CenterWSClient.java:73)
Caused by: javax.xml.rpc.soap.SOAPFaultException: Connection refused:connect
atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:459)
atweblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:359)
atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:225)
atweblogic.jws.proxies.CenterWSSoap_Stub.update(CenterWSSoap_Stub.java:
181) -
"Unknown error" when adding a page via web services
I am trying to add a division (a Welcome page) to a section on another welcome page, in order to get a site structure that is one level deeper than what can be built using the iTunes interface. I am using Web Services, which is new to me, to try to do this, as I understand that web services allows this (see http://discussions.apple.com/thread.jspa?messageID=6786261�). I have build a login page that takes my institutional name and password, authenticates me, constructs the authorization token, requests, and successfully receives an upload URL from iTunes U.
It sets the action on a file upload form to this received URL. I then, easily within 90 seconds, browse to the Web Services XML file I want to upload, select it in the file upload form field, and submit the form.
Despite several change to my Web Services document, the text "Unknown error" is all I ever receive back, and my division is not added. Can anyone help?
An the HTML output of the dynamically constructed page with the upload form, and the web services document I am trying to upload, may be found at:
http://itc.boisestate.edu/iTunesU.zip
Thanks,
Eric OrtonIt's probably due to the unescaped ampersand in your division name. To be well-formed XML, it must be written as "&" (and, 'a', 'm', 'p', semicolon). In addition, the order of your parameters does not match the XSD. Here's a version that does:
<ITunesUDocument>
<Version>1.1</Version>
<AddDivision>
<ParentHandle>1525601603</ParentHandle>
<ParentPath/>
<TemplateHandle>1525143263</TemplateHandle>
<Division>
<Name>Modern Languages & Literature</Name>
<ShortName>Modern Languages</ShortName>
<Identifier>langlit</Identifier>
<AllowSubscription>true</AllowSubscription>
<Permission>
<Credential>Authenticated@urn:mace:itunesu.com:sites:boisestate.edu</Credential>
<Access>No Access</Access>
</Permission>
</Division>
</AddDivision>
</ITunesUDocument> -
Internal unkown error when trying to import a web service
Hi!!!
I need help to achive the possiblity to select methods from a web service, I get following errors:
NET Web Service Proxy Tool Report for Web Service:
Monday, May 14, 2007 10:53:44 AM
Web Service URL: http://10.110.30.228/automation/v1.wsdl
The following errors/warnings occurred when generating the local proxy dll and VI wrappers for this web service.
Internal Unknown Error.
Please contact National Instruments for help.
C:\Program Files\National Instruments\LabVIEW 8.2\user.lib\WebService\chassie\.dll
In addition, when opning Labview software I get a message that I do not have permission to read dll file located in directory of webservice.
Hope for quick response.
Best regards AHi!!
I did make a try with http post (see attachment) with the aim to send a soap xml in the http post.
I do get an error when trying to parse the soap message (see message below).
Do you have suggestions for improvement of this VI???
All advice will be appresiated.
A
#####################################################################################################3
HTTP/1.0 200 OK
Date: Tue, 15 May 2007 13:24:20 GMT
Server: Boa/0.94.13
Connection: close
Content-type: text/xml
Cache-Control: no-store
Expires: -1
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Body>
<env:Fault>
<env:Code>
<env:Value>envender</env:Value>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Failed to parse SOAP message</env:Text>
</env:Reason>
</env:Fault>
</env:Body>
</env:Envelope>#########################################################################
Attachments:
Soap_post html.vi 31 KB -
Error when using int array as out parameter
Hi,
I have created a simple webservice in Weblogic 8.1.4 and created a method that takes the following parameters:
* @wlws:part errorCodes style="out"
* @wlws:part Result style="out"
public void checkPin(int[] cardId, int validation, String cardType, int blockedBy, int[] lang, int[]errorCodes, IntHolder Result)
I've compiled the code using an ant script and it calls autotype, source2wsdd and clientgen, then deploys the webservice successfully. However, when I invoke the webmethod either through a client (.net client) or through the weblogic console webservice test interface it throws a soap fault:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Exception during processing: java.lang.IllegalArgumentException: argument type mismatch (see Fault Detail for stacktrace)</faultstring><detail><bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.lang.IllegalArgumentException: argument type mismatch
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:324)
at weblogic.webservice.component.javaclass.JavaClassInvocationHandler.invoke(JavaClassInvocationHandler.java:133)
at weblogic.webservice.core.handler.InvokeHandler.handleRequest(InvokeHandler.java:104)
at weblogic.webservice.core.HandlerChainImpl.handleRequest(HandlerChainImpl.java:143)
at weblogic.webservice.core.DefaultOperation.process(DefaultOperation.java:535)
at weblogic.webservice.server.Dispatcher.process(Dispatcher.java:204)
at weblogic.webservice.server.Dispatcher.doDispatch(Dispatcher.java:176)
at weblogic.webservice.server.Dispatcher.dispatch(Dispatcher.java:96)
at weblogic.webservice.server.WebServiceManager.dispatch(WebServiceManager.java:100)
at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebServiceServlet.java:297)
at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:485)
at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
</bea_fault:stacktrace></detail></env:Fault></env:Body></env:Envelope>
The WSDL looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns:tns="http://tempuri.org/" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://tempuri.org/">
- <types xmlns:tns="http://tempuri.org/" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/">
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="java:language_builtins" elementFormDefault="qualified" attributeFormDefault="qualified" targetNamespace="java:language_builtins">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <xsd:complexType name="ArrayOfInt">
- <xsd:complexContent>
- <xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" wsdl:arrayType="xsd:int[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="java:language_builtins.lang" elementFormDefault="qualified" attributeFormDefault="qualified" targetNamespace="java:language_builtins.lang">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <xsd:complexType name="ArrayOfString">
- <xsd:complexContent>
- <xsd:restriction xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" base="soapenc:Array">
<xsd:attribute xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
</types>
- <message name="setBlockingStatus">
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="cardId" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="validation" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="cardType" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="blockedBy" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="block" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="newBlockedBy" />
</message>
- <message name="setBlockingStatusResponse">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodes" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="Result" />
</message>
- <message name="getStatus">
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="cardId" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="validation" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="cardType" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="blockedBy" />
</message>
- <message name="getStatusResponse">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="balance" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="lang" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="block" />
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="firstUse" />
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="lastUse" />
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="expireFirstUse" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="cardBlockedBy" />
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="expireLastUse" />
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="expireActivation" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodes" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="Result" />
</message>
- <message name="setLang">
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="cardId" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="validation" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="cardType" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="blockedBy" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="lang" />
</message>
- <message name="setLangResponse">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodes" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="Result" />
</message>
- <message name="changeBalance">
<part xmlns:partns="java:language_builtins.lang" type="partns:ArrayOfString" name="cardId" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="validation" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="cardType" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="blockedBy" />
</message>
- <message name="changeBalanceResponse">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="units" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="balanceBefore" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="balanceAfter" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodes" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodePos" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="Result" />
</message>
- <message name="checkPin">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="cardId" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="validation" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:string" name="cardType" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="blockedBy" />
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="lang" />
</message>
- <message name="checkPinResponse">
<part xmlns:partns="java:language_builtins" type="partns:ArrayOfInt" name="errorCodes" />
<part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:int" name="Result" />
</message>
- <portType name="XanticChatCardServicePort">
- <operation parameterOrder="cardId validation cardType blockedBy block newBlockedBy errorCodes Result" name="setBlockingStatus">
<input message="tns:setBlockingStatus" />
<output message="tns:setBlockingStatusResponse" />
</operation>
- <operation parameterOrder="cardId validation cardType blockedBy balance lang block firstUse lastUse expireFirstUse cardBlockedBy expireLastUse expireActivation errorCodes Result" name="getStatus">
<input message="tns:getStatus" />
<output message="tns:getStatusResponse" />
</operation>
- <operation parameterOrder="cardId validation cardType blockedBy lang errorCodes Result" name="setLang">
<input message="tns:setLang" />
<output message="tns:setLangResponse" />
</operation>
- <operation parameterOrder="cardId validation cardType blockedBy units balanceBefore balanceAfter errorCodes errorCodePos Result" name="changeBalance">
<input message="tns:changeBalance" />
<output message="tns:changeBalanceResponse" />
</operation>
- <operation parameterOrder="cardId validation cardType blockedBy lang errorCodes Result" name="checkPin">
<input message="tns:checkPin" />
<output message="tns:checkPinResponse" />
</operation>
</portType>
- <binding type="tns:XanticChatCardServicePort" name="XanticChatCardServicePort">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <operation name="setBlockingStatus">
<soap:operation style="rpc" soapAction="" />
- <input>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
- <output>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
- <operation name="getStatus">
<soap:operation style="rpc" soapAction="" />
- <input>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
- <output>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
- <operation name="setLang">
<soap:operation style="rpc" soapAction="" />
- <input>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
- <output>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
- <operation name="changeBalance">
<soap:operation style="rpc" soapAction="" />
- <input>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
- <output>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
- <operation name="checkPin">
<soap:operation style="rpc" soapAction="" />
- <input>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
- <output>
<soap:body namespace="http://tempuri.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
</binding>
- <service name="XanticChatCardService">
- <port name="XanticChatCardServicePort" binding="tns:XanticChatCardServicePort">
<soap:address location="http://localhost:7001/XanticChatCardWebservice/XanticChatCardService" />
</port>
</service>
</definitions>
Any idea what the problem would be? This should workOk...I proved myself wrong. After further review I found a post on here that somebody had a similar problem and solved it. It all comes down to the autotype generation. For some reason, my autotypes get generated in a different namespace "language_builtins.lang". I read that XML-RPC wants all custom out parameters to be placed under the webservice package/holders namespace but for some reason autotype autogenerates the holders in language_builtins. I've played with the options for autotype but nothing seem to fix it so I basically took the .wsdl file generated by source2wsdd, changed all references to language_builtins to the proper namespace and reran autotypes with the wsdl option instead of javaComponent. That seem to have forced the classes to be generated in the correct directories.
-
Problem with string constructor when using byte array as parameter
I am creating a string using constructor and passing byte array as parameter.This byte array i am getting from MessageDigest's digest() method,i.e. a hash value.
The problem is when i iterate through byte array i can able to print all the values in byte array.But when i construct a string from that byte array and printing that string ,that is printing some unknown characters.
I don't know whether i need to pass charsequence to the constructor and the type of charsequence.Can anybody help me?
Thanks in advanceIs there some problem today? I'm getting this sort of thing all over.
I already told you and so did Kayaman. Don't. String is not a holder for binary data. You have to Base-64 encode it. If you don't you cannot reconstruct the original binary digest value, so putting it into a database is completely utterly and entirely pointless.
Is that clear enough? -
Namespace problem when using B1iSN V8.8 web service on B1 8.8 objects
Dear all
Investigating web services in B1iSN V8.8, we are trying to run, as a test, the tutorial example (thanks to Maria Trinidad) detailed in:
Exposing and Hosting WebServices for SAP Business One with B1iSN
ArticleTrinidad Martinez (Yatsea Li)SAP Contribution29 Sep 2010 PDF2 MB
When we choose (strictly following to the tutorial) the
/com.sap.b1i.datasync.repository/ObjectType.xsd/B1.8.8_BusinessPartners.xsd
for the of the custom object type,
then the WSDL generation fails: Prefix 'nspf1' used in attribute 'nspf1:force' is not declared anywhere
but when we choose for the schema:
/com.sap.b1i.datasync.repository/ObjectType.xsd/B1.2007_BusinessPartners.xsd
then the WSDL generation succeeds.
Any idea ?
Thanks.
ChristopheDear all
Investigating web services in B1iSN V8.8, we are trying to run, as a test, the tutorial example (thanks to Maria Trinidad) detailed in:
Exposing and Hosting WebServices for SAP Business One with B1iSN
ArticleTrinidad Martinez (Yatsea Li)SAP Contribution29 Sep 2010 PDF2 MB
When we choose (strictly following to the tutorial) the
/com.sap.b1i.datasync.repository/ObjectType.xsd/B1.8.8_BusinessPartners.xsd
for the of the custom object type,
then the WSDL generation fails: Prefix 'nspf1' used in attribute 'nspf1:force' is not declared anywhere
but when we choose for the schema:
/com.sap.b1i.datasync.repository/ObjectType.xsd/B1.2007_BusinessPartners.xsd
then the WSDL generation succeeds.
Any idea ?
Thanks.
Christophe
Maybe you are looking for
-
Transporting a Function Module from Dev to QA system
Hi Experts, I developed a new Function Module in an existing Function Group. This is function group is the old one so already exists in QA as well. Now when I make a transport request what do I need to keep in that? Only my new FM or the FG also? If
-
My iTunes won't open anymore. I get an error message that reads..."The program can't open because MSVCR80.dll is missing from your computer. Try reinstalling to fix. Tried it and I still can't open the program. Can anyone help?
-
Where is the prebuilt dev vbox appliance for Solaris?
In the developer vm appliance page http://www.oracle.com/technetwork/community/developer-vm/index.html there is an entry for Solaris 11 but the link points to the weblogic appliance http://www.oracle.com/technetwork/middleware/weblogic/downloads/webl
-
Unable to update - Download error (49)
Indesign and Bridge happily update, but Photoshop and Premiere continually get this error. Connected to the internet and no issues on any other site or transferring large files.. Any ideas?
-
In finder I have shared ETOS-time capsule. ? What is it?
Hi...I have in my finder down the left hand bar showing what's happening...a title saying SHARED and below it is ETOS-time capsule. What is that? How can I remove it since I am not on any shared network. Help please. If you know what it is, perha