English 中文(简体)
大部分基本标准 EJB的请求
原标题:Most Basic Php SOAP Request from EJB

基本生活标准功能:

//SOAP CALL
function sayHello(){
    $client = new SoapClient( http://Server:8080/MyClassService/MyClass?WSDL );
    $response = $client->glassfishHello();
    return $response;   
}

(后一称Hello()为“优势”,即错误之处)

The Basic EJB provided JAX-WS:

@WebService
@Stateless
public class MyClass{
  @WebMethod(operationName="glassfishHello")
  public String glassfishHello(){
    return "Hello from GlassFish";
  }
}

我必须找不到一件非常简单的事情,但在用尽了眼光和其他选择之后,我无法找到一个简单的例子,因为我需要理解这一点。

我的博士有错误:可回收的致命错误: B. 舱面物体 不能将班级改为体格。

因此,在项目组合中,我必须做一些事情来消除妇女发展论坛的答复。

Thank you! (I can post the WSDL or any other resources) Yes I do have SOAP enabled and working.


我的问题是哪类物体正在归还。 我希望我的言语Hello()能够回来。 如果我投了会费=1美元(指示),那我就错了。


ANSWER: I knew it was simple, just a dumb PHP mistake, it has been too long since I used PHP last:

//SOAP CALL
function sayHello(){
    $client = new SoapClient( http://Server:8080/MyClassService/MyClass?WSDL );
    $response = (array) $client->glassfishHello();      
    return $response[ return ];
}
最佳回答

I knew it was simple, just a dumb PHP mistake, it has been too long since I used PHP last:

//SOAP CALL
function sayHello(){
    $client = new SoapClient( http://Server:8080/MyClassService/MyClass?WSDL );
    $response = (array) $client->glassfishHello();      
    return $response[ return ];
}
问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签