ADF Web Services 11g - how to change SOAP message
Hey,
Can I affect on SOAP structure?
When we call web service, next soap message is generated:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://hr/crosig/ws/osigurateljnidokument/OsigurateljniDokument.wsdl"; xmlns:ns1="http://hr/crosig/ws/osigurateljnidokument/OsigurateljniDokument.wsdl/types/"; xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<env:Body>
<ns:unos>
<ppol>
<ns1:kratkiopis/>
<ns1:premijado/>
<ns1:sifraklauzule/>
<ns1:datumpocetka/>
</ppol>
<res_out>
<ns1:kratkiopis ns2:nil="true"/>
<ns1:premijado ns2:nil="true"/>
<ns1:sifraklauzule ns2:nil="true"/>
<ns1:datumpocetka ns2:nil="true"/>
<ns1:vinkulacije ns2:nil="true"/>
</res_out>
</ns:unos>
</env:Body>
</env:Envelope>
and we get next error:
<?xml version = '1.0' encoding = 'UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>BEA-380001: Internal Server Error</faultstring>
<detail>
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-380001</con:errorCode>
<con:reason>Internal Server Error</con:reason>
<con:location>
<con:node>RouteNode1</con:node>
<con:path>response-pipeline</con:path>
</con:location>
</con:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
We send next SOAP message and then everything works fine (just removed ns1):
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://hr/crosig/ws/osigurateljnidokument/OsigurateljniDokument.wsdl"; xmlns:ns1="http://hr/crosig/ws/osigurateljnidokument/OsigurateljniDokument.wsdl/types/"; xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<env:Body>
<ns:unos>
<ppol>
<kratkiopis/>
<premijado/>
<sifraklauzule/>
<datumpocetka/>
</ppol>
<res_out>
<kratkiopis ns2:nil="true"/>
<premijado ns2:nil="true"/>
<sifraklauzule ns2:nil="true"/>
<datumpocetka ns2:nil="true"/>
<vinkulacije ns2:nil="true"/>
</res_out>
</ns:unos>
</env:Body>
</env:Envelope>
But I don't know how can we affect on SOAP message? I don't see any parameter or something what can I set to change SOAP message...
Tnx.
And when we call web service from proxy classes, then different SOAP message was sent , and that SOAP message is ok, too:
<?xml version = '1.0' encoding = 'UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns3:unos xmlns:ns3="http://hr/crosig/ws/osigurateljnidokument/OsigurateljniDokument.wsdl" xmlns:ns2="http://hr/crosig/ws/osigurateljnidokument/OsigurateljniDokument.wsdl/types/">
<ppol>
<ns2:kratkiopis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:premijado xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:sifraklauzule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:datumpocetka xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<res_out>
<ns2:kratkiopis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:premijado xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:sifraklauzule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ns2:datumpocetka xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</res_out>
</ns3:unos>
</S:Body>
</S:Envelope>
Similar Messages
-
How to Call web service operation by creating plain SOAP message in client?
Hi
Thank you for reading my post.
I have some questions about using web methods of a web service which i would be very gratfull if you could answer.
I should implement a web service that should receive a file with some other parameters from client and another web service which should receive some parameters and return a file.
I used a mechanism like the following one to handle the condition and it just works. But I have a problem, I need to create dynamic invocation and I must create soap message and send it to webservice (no IDE generated code)
What i need is one or two tips or a sample that shows how we can send and receive files by web services.
I want to know how we can create the SOAP message ourself and then send it to the web service endpoint and it call the web method and ....
Imagine the following web method, How i can invoke it by creating soap message myself and sending it to end point.
@WebMethod
public String saveFile(@WebParam(name = "fileName") String fileName, @WebParam(name = "fileContent") byte[] fileContent) {
// TODO implement operation
return "Something";
Another question is :
Does this mechanism that i used to transfer files is OK?
Is it optimized or there are some other ways to do this job.
I should say that i put one week on handlers to use soap attachments and i get no result.
So, Please let me know if you know or have some sample that show me how to do the above job.
Thanks.Hi
From NW04s SP8 you can create webservice systems from within VC , and you will have the option of adding a user and password to authenticate. You can find it at Tools>>Define web service system. You will see a check box url requires user and password.
If for some reason you can not do it in VC then you should create the system in the portal and fill out the usermapping screens.
Jarrod Williams -
How to change SOAP Messages to include headers in Designer???
Hi, I am trying to design a form to connect to Salesforce.com, they provide a Web service.<br />So I connected the WSDL file to the form and I get the objects correct, but I need to login to execute any function like queries, search, update etc..<br />So they provide a login call which works, it returns a sessionId and a URL,the problem is I need to send the sessionId to execute the other functions, the Salesforce documentation says that I need to set that sessionId in the Soap header, and that is where I have the problem:<br /><br />This is the login, which works correctly<br />Request Message login Call<br /><br /><?xml version="1.0" encoding="utf-8"?> <br /> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" <br />xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://<br />www.w3.org/2001/XMLSchema"> <br /> <soap:Body> <br /> <login xmlns="urn:partner.soap.sforce.com"> <br /> <username>[email protected]</username> <br /> <password>secret</password> <br /> </login> <br /> </soap:Body> <br /> </soap:Envelope> <br /><br />Response Message login Call<br /> <br /><?xml version="1.0" encoding="UTF-8"?> <br /><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" <br />xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/<br />XMLSchema-instance"> <br /> <soapenv:Body> <br /> <loginResponse xmlns="urn:partner.soap.sforce.com"> <br /> <result> <br /> <passwordExpired>false</passwordExpired> <br /> <serverUrl>https://blitzna1.eng.salesforce.com/services/Soap/u/5.0</<br />serverUrl> <br /> <sessionId>c0l4g2lI.slq0uexTI3HIIuTTc9.wnYd0_jXlNKOSU</sessionId> <br /> <userId>00530000000cJzKAAU</userId> <br /> </result> <br /> </loginResponse> <br /> </soapenv:Body> <br /></soapenv:Envelope> <br /><br />Now I want to use that sessionId in the next calls:<br /><br />This is an example of how the client has to send a Search request call: <br /><br /><?xml version="1.0" encoding="utf-8"?> <br /><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" <br />xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://<br />www.w3.org/2001/XMLSchema"> <br /> <soap:Header> <br /> <SessionHeader xmlns="urn:partner.soap.sforce.com"> <br /> <sessionId>4I1yNabX_5FyOGOnuFO64VpRP0_jXlNKOSU</sessionId> <br /> </SessionHeader> <br /> </soap:Header> <br /> <soap:Body> <br /> <search xmlns="urn:partner.soap.sforce.com"> <br /> <searchString>find {4159017000} in phone fields returning <br />contact(id, phone, firstname, lastname), lead(id, phone, firstname, lastname), <br />account(id, phone, name)</searchString> <br /> </search> <br /> </soap:Body> <br /> </soap:Envelope> <br /><br />But in the form I have this:<br /> <DataConnection3><br /> <soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><br /> <tns:search xmlns:tns="urn:partner.soap.sforce.com"><br /> <tns:searchString/><br /> </tns:search><br /> </soap:Body><br /> </DataConnection3><br /><br />So Salesforce does not accept the call, I have tried changin it to the sample above, but it does not appear to work<br /><br />Please help!!
I tried using the soap object and i could include headers but I didnt finish, we dont need to do that anymore, because we are going to change the CRM,
but the best you can do is try the Acrobat JavaScript Scripting Guide and try the SOAP and WebServices Section where they describe how to use the SOAP Object -
Unknown protocol: classpath when SOA server parses WSDL of ADF Web Services
We used ADF 11.1.1.4 to create synchronous web services (via Application Module Service Interface). Everything worked fine, we were able to created SOA composites that references those ADF web services and deploy them to SOA server successfully.
However, since last weekend, all SOA composites that reference the ADF web services started to give the following exception when loaded during SOA server startup:
[2012-01-17T14:27:35.373-05:00] [soa_server1] [ERROR] [SOA-20003] [oracle.integration.platform] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@39ed0f9] [userId: <anonymous>] [ecid: 0000JJh8SfNFg4aPXMg8xb1F5Sgf000001,0] [APP: soa-infra] Unable to register service.[[
oracle.fabric.common.FabricException: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Error reading import of oramds:/deployed-composites/default/MainOrch100000000002001Composite_rev1.0/SOAAMServiceRef.wsdl: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Error reading import of oramds:/apps/epm/fcc/service/SOAAMService.wsdl: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Invalid URL or file: classpath:/META-INF/wsdl/ServiceException.wsdl: java.net.MalformedURLException: unknown protocol: classpath: WSDLException: faultCode=INVALID_WSDL: Error reading import of oramds:/deployed-composites/default/MainOrch100000000002001Composite_rev1.0/SOAAMServiceRef.wsdl: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Error reading import of oramds:/apps/epm/fcc/service/SOAAMService.wsdl: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Invalid URL or file: classpath:/META-INF/wsdl/ServiceException.wsdl: java.net.MalformedURLException: unknown protocol: classpath
at oracle.fabric.composite.model.CompositeModel.loadImports(CompositeModel.java:379)
at oracle.fabric.composite.model.CompositeModel.getWSDLManager(CompositeModel.java:198)
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.getDefinition(WebServiceEntryBindingComponent.java:240)
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.load(WebServiceEntryBindingComponent.java:147)
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.load(WebServiceEntryBindingComponent.java:98)
at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deployServices(CompositeDeploymentConnection.java:161)
at oracle.integration.platform.blocks.deploy.CompositeDeploymentConnection.deploy(CompositeDeploymentConnection.java:92)
at oracle.integration.platform.blocks.deploy.CompositeDeployerImpl.deploy(CompositeDeployerImpl.java:149)
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Error reading import of oramds:/apps/epm/fcc/service/SOAAMService.wsdl: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Invalid URL or file: classpath:/META-INF/wsdl/ServiceException.wsdl: java.net.MalformedURLException: unknown protocol: classpath
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:932)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseDefinition(WSDLReaderImpl.java:808)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:708)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:656)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:368)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:911)
... 32 more
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Invalid URL or file: classpath:/META-INF/wsdl/ServiceException.wsdl: java.net.MalformedURLException: unknown protocol: classpath
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:929)
... 37 more
Caused by: java.net.MalformedURLException: unknown protocol: classpath
at java.net.URL.<init>(URL.java:574)
at java.net.URL.<init>(URL.java:465)
at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.parseImport(WSDLReaderImpl.java:901)
... 37 more
Any suggestion about what might be causing this issue?
Thanks,
FangJust thought to put the solution here, in case anyone else that uses SOA encounter the same issue.
It turns out the setDomainEnv.cmd file for SOA server was corrupted, so that the list of PROTOCOL_HANDLERS are bad. It should have
set PROTOCOL_HANDLERS=%PROTOCOL_HANDLERS%;oracle.fabric.common.classloaderurl.handler;oracle.fabric.common.uddiurl.handler;oracle.bpm.io.fs.protocol
But something changed it to be only have oracle.mds.net.protocol, Therefore the classpath protocol could not be recognized by SOA server. Once we corrected the PROTOCOL_HANDLERS, this issue is gone. -
Error with web service SRT: Unexpected failure in SOAP processing occurred:
Hello,
I get the following error with a web service
"SRT: Unexpected failure in SOAP processing occurred: ("No configuration for this HTTP server instance")"
Any ideas on how to solve this ?
Thanks.
Regards, MichelHi,
I think the WSDL file shared with you and the soap message you are getting are a mismatch.
Try to check the soap message xml format and see if matches the ouputs tags structure in WSDL file.
Thanks & Rgds,
Aditya -
Error in ADF Web Service Connection
Hello everyone.
I have the following problem.
Create a "Web Services Proxy" to consume a Web Services outside the application.
Web services require authentication and create a Web ADF Services Connection to authenticate, but when you programmatically use the ADF Web Service Connection I get the following error:
java.lang.NullPointerException
at java.lang.Class.isAssignableFrom(Native Method)
at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:97)
at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:118)
at oracle.j2ee.ws.common.jaxws.runtime.OperationMappingModeler.processParameters(OperationMappingModeler.java:268)
at oracle.j2ee.ws.common.jaxws.runtime.OperationMappingModeler.processMethod(OperationMappingModeler.java:155)
at oracle.j2ee.ws.common.jaxws.runtime.ServiceEndpointRuntimeModeler.buildRuntimeModel(ServiceEndpointRuntimeModeler.java:114)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.getRuntimeMetadata(WsClientProxyFactory.java:69)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:126)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:106)
at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:219)
at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:249)
at oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl.getJaxWSPort(WebServiceConnectionImpl.java:399)
at edu.esade.portal.wsclient.wordpress.WordPressCliente.getDatosBlogsBndQSService(WordPressCliente.java:62)
at edu.esade.portal.wsclient.wordpress.WordPressCliente.getDatosBlogsPortClient(WordPressCliente.java:86)
at edu.esade.portal.wsclient.wordpress.WordPressCliente.getBlogs(WordPressCliente.java:105)
at edu.esade.portal.wsclient.wordpress.WordPressCliente.main(WordPressCliente.java:167)
The code I use to get the connection is:
private DatosBlogsBndQSService getDatosBlogsBndQSService () {
Context ctx;
try {
ctx = ADFContext.getCurrent().getConnectionsContext();
WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("DatosBlogsBndQSService");
System.out.println("wsc:"+wsc.toString());
DatosBlogsBndQSService proxy = wsc.getJaxWSPort(DatosBlogsBndQSService.class); // line 62
return proxy;
} catch (NamingException e) {
e.printStackTrace();
return null;
Finalmente la configuración del recurso es:
<Reference name="DatosBlogsBndQSService" className="oracle.adf.model.connection.webservice.impl.WebServiceConnectionImpl" credentialStoreKey="DatosBlogsBndQSService" xmlns="">
<Factory className="oracle.adf.model.connection.webservice.api.WebServiceConnectionFactory"/>
<RefAddresses>
<XmlRefAddr addrType="WebServiceConnection">
<Contents>
<wsconnection description="URL-XXX" service="{URL-XXX}DatosBlogsBndQSService">
<model name="{URL-XXX}DatosBlogsBndQSService" xmlns="http://oracle.com/ws/model">
<service name="{URL-XXX}DatosBlogsBndQSService">
<port name="DatosBlogsBndQSPort" binding="{URL-XXX}DatosBlogsBnd">
<soap username="transportUserName" password="transportPassword" addressUrl="URL-XXX" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<operation name="consultarPosts">
<soap soapAction="URL-XXX" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
<operation name="listarBlogs">
<soap soapAction="URL-XXX" xmlns="http://schemas.xmlsoap.org/wsdl/soap/"/>
<output name=""/>
<input name=""/>
</operation>
</port>
</service>
</model>
</wsconnection>
</Contents>
</XmlRefAddr>
<SecureRefAddr addrType="transportPassword"/>
<SecureRefAddr addrType="transportUserName"/>
</RefAddresses>
</Reference>
When the Web Service did not require authentication to work without problem, the error arises when you need to login and use the "ADF Web Services Connection", is there some other way to log in using the Web Service proxy client directly?
Any help is welcome.
Regards.
MarceloHi Shay.
I not use Web service data control, I use only Web Service proxy and the client class for populate data to view object programmatically.
However, in a test class do I have this:
public class WordPressCliente {
private final static Logger logger = Logger.getLogger(WordPressCliente.class);
public WordPressCliente() {
super();
private DatosBlogsBndQSService getDatosBlogsBndQSService () {
Context ctx;
try {
ctx = ADFContext.getCurrent().getConnectionsContext();
WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("DatosBlogsBndQSService");
System.out.println("wsc:"+wsc.toString());
DatosBlogsBndQSService proxy = wsc.getJaxWSPort(DatosBlogsBndQSService.class);
return proxy;
} catch (NamingException e) {
e.printStackTrace();
return null;
private DatosBlogsPT getDatosBlogsPortClient() throws Exception {
URL baseUrl = DatosBlogsBndQSService.class.getResource(".");
URL url = new URL(baseUrl,ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress"));
QName qName = new QName("http://esade.edu/soa/servicio/DatosBlogs/v01_00","DatosBlogsBndQSService");
System.setProperty("http.username", "atsistemas");
System.setProperty("http.password", "atsistemas2011");
DatosBlogsBndQSService integracionWordpress = new DatosBlogsBndQSService(url,qName);
DatosBlogsPT wordpressPT = integracionWordpress.getDatosBlogsBndQSPort();
if (ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.autenticacion").equals("true")) {
System.out.println("hay que validar el WS");
BindingProvider bp = (BindingProvider)wordpressPT;
bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.usuario"));
bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.clave"));
DatosBlogsPT wordpressPT = getDatosBlogsBndQSService().getDatosBlogsBndQSPort();
return wordpressPT;
private DatosItemsPT getDatosItemsPortClient() throws Exception {
DatosItemsBndQSService datosItems = new DatosItemsBndQSService();
DatosItemsPT itemsPT = datosItems.getDatosItemsBndQSPort();
if (ArchivoUtil.getInstance().getPropiedad("ws.integracion.items.autenticacion").equals("true")) {
BindingProvider bp = (BindingProvider)itemsPT;
bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.usuario"));
bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, ArchivoUtil.getInstance().getPropiedad("ws.integracion.wordpress.clave"));
return itemsPT;
public List<Blog> getBlogs() throws Exception {
List<Blog> lista = null;
try {
DatosBlogsPT cliente = getDatosBlogsPortClient();
FiltroBlogs filtroBlog = new FiltroBlogs();
ListarBlogsInput blogInput = new ListarBlogsInput();
HeaderESADE header = new HeaderESADE();
header.setUsernameESADE("");
header.setParentSOAComponent("");
blogInput.setFiltroBlogs(filtroBlog);
lista = cliente.listarBlogs(blogInput,header).getBlogs().getBlog();
} catch (ClientTransportException e) {
logger.error(e.getStackTrace());
e.printStackTrace();
ADFUtils.showMessage(Constantes.TITULO_01, Constantes.MENSAJE_01);
return lista;
public List<Post> getPostsPorBlog(String idBlog) throws Exception {
List<Post> lista = null;
try {
DatosBlogsPT cliente = getDatosBlogsPortClient();
ConsultarPostsInput postInput = new ConsultarPostsInput();
FiltroPosts filtroPost = new FiltroPosts();
HeaderESADE header = new HeaderESADE();
filtroPost.setBlogId(new Long(idBlog).longValue());
filtroPost.setFechaInicio(FechaUtil.getFecha());
filtroPost.setFechaFin(null);
header.setUsernameESADE("");
header.setParentSOAComponent("");
lista = cliente.consultarPosts(postInput,header).getPosts().getPost();
} catch (ClientTransportException e) {
logger.error(e.getStackTrace());
ADFUtils.showMessage(Constantes.TITULO_01, Constantes.MENSAJE_01);
return lista;
public static void main(String[] args) {
WordPressCliente wordPressCliente = new WordPressCliente();
try {
Iterator i = wordPressCliente.getBlogs().iterator();
while (i.hasNext()) {
Blog blog = (Blog)i.next();
logger.debug("Blog Id:" + blog.getId() + " url:" + blog.getUrl() + " nombre:" + blog.getNombre() + " publico:" + blog.isPublico() + " lang:" + blog.getLang());
try {
Iterator j = wordPressCliente.getPostsPorBlog(Long.toString(blog.getId())).iterator();
while (j.hasNext()) {
Post post = (Post)j.next();
logger.debug(" Post Id:" + post.getId() + " autor:" + post.getAutor() + " titulo:" + post.getTitulo() + " size ambitos:" + post.getAmbitos().getAmbito().size() +
" tags:" + post.getTags());
} catch (Exception e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
} -
EJB Web Service Interface parameters name changed
Hi, all,
I create a simple Session EJB 3.0 with Web Service interface in Jdeveloper 10.1.3.4. and I deployed it into the embedded OC4J server.
The question is I found that the web service operator parameters is changed to "String_1" (actually the parameter in EJB method is String ss). And I found the WSDL file is also String_1.
How to create the real parameter name in WSDL from EJB Web Service interface? Any help on that?
Best Regards,
Billif you do a lookup for the name "java:comp/env/ejb/queryProc" in the servlet, the deployment descriptor of your web-archive must contain an ejb-reference with the ref-name 'ejb/queryProc'.
-
Binding LinkedList to ADF Web Service Data Control
Hi guys,
I would like to ask about how to bind a LinkedList (consumed from webservice) to ADF web service data control, in order to display it in JSF page. This LinkedList contains java beans that hold information I need. I've tried to ask google and search this forum, but still got no luck.
<p>
Yes I found article about dealing with complex input params, but seems not what I'm looking for.
<p>
Anybody has hint or idea on this ?
<p>
ThanksTake a look at this blog entry from Susan Duncan: Dealing with Complex Input Params in ADF Web Service Data Controls.
It looks like what you are asking for.
Hope it helps,
-Eric -
Oracle ADF web services data control reconfiguration problem....
We fallow instruction below
http://www.oracle.com/technology/products/jdev/viewlets/1013/bpelfromadf_viewlet_swf.html
That was our test environment.
we need to change web service url according to our production environment.
But we can't find ADF web services data control configuration pages.
do we need to manually change XML file.
Thanks..sorry. I miss the structure windows..
I see the menu.
in my opinion this setting need to be done on the item.
Also We can't refresh Web servise parameter list from there.
is tehre any where to refresh parameter list. -
How to change the message in CUCM 7.0 " Your Current Options"
Dear All
can any body help me or assist me to type my own message at the botom of the phones by default its your current options but i tried to much to change it or find any way to change and i failed.
in Call Manager express it was easy to change just at the cli you type "system message Hello this is your IP Phone" but at the CUCM 7.0 i dont know how to change this and solve this problem so can any body tell me how to change this message please its needed 100% for me
i have atached the picture that where the message cames so you people can see it.
with regards
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
Waisudin Farzam ویس الدین فرزام
Project National IT Specialist متخصص ملی تکنالوژی معلوماتی
Sustainable Development of Natural Resources Project
IDA Grant No: H238-AF
Program Management Unit (PMU)
Afghanistan Geological Survey (AGS) Annex Building, Ministry of Mines,
Kabul, Afghanistan
AWCC Cell Phone: 0093 - 700 - 29 60 62
MTN Cell Phone: 0093 - 777 - 29 60 62
E-Mail Address: [email protected]
E-Mail Address: [email protected]
E-Mail Address: [email protected]
Skype ID: wais.farzam
MSN ID: [email protected]You cannot change it, in CCM it was possible due to it being Windows and you had access to all the files.
CUCM does not grant access to the necessary files for this unless you have root access and it's not granted for purposes other than troubleshooting or to apply a workaround from a bug.
HTH
java
If this helps, please rate
www.cisco.com/go/pdihelpdesk -
How To Change Standard Message Language?
Dear All
I have a atrribute, whose data type is integer .It is bounded to a inputfield .
When i launch the application ,and input a string in the inputfield ,after i trigger a event ,it return a wrong message in German language ?
So can anybody give me some tips about how to change the message language in English?
Thanks In Advance .Dear Eleanor,
Please look at following settings in given order to see if language is set as German (de).
1. URL - is language being passed as parameter (sap.locale)? [This is valid only if you are the Developer of application]
2. Your User ID - Is your default language set as German?
3. Browser - Is your Browser's default language German?
4. Is 'defaultlocale' property of application set as German?
5. Is default language of project German?
6. JVM default is German?
You should find the answer to your question in one of these 6 locations. Please note that value in 1 will override values of 2-6. Similarly value in 2 will override value in 3-6 and so on.
Hope this helps.
Vishwas. -
How to change soap header in xml
some one know how can i change the SOAP:mustUnderstand="1" to SOAP:mustUnde
Hi,
you could use the below alternative solution also as some Web services do not accept the message , if Content type is application/XML in the HTTP Header, it will accept only Text/XML. So While calling the Web service, the content has to be changed, This is possible using Module of the adapter as shown in the screen shot.
HTTP Header field values before using the module
User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
content-id: [email protected]
content-type: application/xml
Content-Length: 1280
Module name - localejbs/AF_Modules/MessageTranspormationBean
Type - Local Enterprise Bean Module - This is defined by the user, but the same name should be given in the module configuration for passing the parameters. In this case transform In the module configuration ,
Module key - In this case transform
Parameter name - Transform.ContenType
Parameter Value - text/xml;charset=utf-8
Here you could use the required parameters and pass the values....:-))
Thanks
Swarup -
Web Service Model ---javax.xml.rpc.soap.SOAPFaultException
Hi Experts,
I am working with webservices model Using NWDS 7.013. One application (webservice model) was developed in old portal server after that portal server was scrapped. XI server only available now. Currently i have a new server. I import into that application into My NWDS using the New server.
Refering the below thread
Re: Problem calling XI WebServices from WebDynpro Java
I added following code in the component controller before execute the model
req._setUser("username"); (eg. user_XI)
req._setPassword("password"); (eg. password_XI)
while executing the model in the component controller the following exception will be occured
javax.xml.rpc.soap.SOAPFaultException
How can i rectify this? anything i am going to create JCO in SLD or any configuration going to create Visual administrator? Please give me your valuable suggestions....
Regards,
P.Manivannan.Hi,
Refer to thread Re: Web Service Error. which may be helpful.
Kind Regards,
Nitin -
Java Web Service Access SOP Header and SOAP Body
Hi
I am newbie to Web Service. I had a Java class and I converted it to Web Service(LoginWebService has methods login, register).
Now my client is accessing my web services and calling methods login and register.
Now I want to add few values in SOAP header in client side.
My Questions:
1. How can I access the SOAP headers and SOAP Body in my Server Web Service method implementations?
2. Is there any API that I have to use?
3. Does anyone have any sample code for these things?
ThanksSeems like the exception handling logic is not sound - but your posting is difficult to read. Please use the *\* tag to mark and end source code snippets.
Have a look at the sample code in {message:id=4205205} - does a SOAP call using PL/SQL only. -
My task - my company has several legacy PowerBuilder applications that access a variety of Sybase and MS SQL databases. Rather than re-inventing the wheel by re-writing these applications in Java, we would like to enable these applications to call java components (EJBs) that will provide new functionality. I would need a piece of software called CSXtend (from www.cynergysystems.com) to allow PowerBuilder to call a web service. However, I am not sure how to expose my business functions (EJBs) as web services on the iPlanet 6.0 App server. Thanks for all previous responses! Any additional info would be greatly appreciated! Mike
I have used Glue (http://www.themindelectric.com/products/glue/glue.html) to expose some of our stuff as Web Services. I recently found this on serverside. It's pretty good.
http://www.theserverside.com/resources/article.jsp?l=Systinet-web-services-part-1
I believe that the middleware they use can be plugged into IPlanet. There is also an article in the knowledge base on the IPlanet site.
Jon
Maybe you are looking for
-
My previous MacBook Air running an older operating system synced up just fine with these same projectors using the same minidisplay to vga adapter. My new computer has Airplay on it, and Airplay shows up on my menu bar on the new laptop where the dis
-
RGB or CMYK colour formatting for iPhoto Albums printing.
Hi. I'm putting my first iPhoto Album together. Info given from Apple about what colour format to use for your photos, says to use RGB. While this is corrcet for digital monitors and screens. Mass printing uses CMYK. Any images supplied to a printers
-
Doubt in Table Function?
Hi, I created a Table funtion. Its working fine. After processing every record, I am piping the record. Can we pipe bulk records (for ex: 50 records) ? Is there any advantange in pefromance? Thanks in advance. Thank you, Regards, Gowtham Sen
-
Where do I download disc menu templates for Adobe Premiere Elements 10?
Where do I download disc menu templates for Adobe Premiere Elements 10?
-
Illustrator CS5 suddenly crashing on startup.
I've tried disabling fonts, clearing my preferences, restarting, etc. Any suggestions would be greatly appreciated! Crash report: Process: Adobe Illustrator [2406] Path: /Applications/Adobe Illustrator CS5/Adobe Illustrator.app/Con